Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9b752e5

Browse filesBrowse files
committed
Add CMake install commands for samples
1 parent 5c7a2c0 commit 9b752e5
Copy full SHA for 9b752e5

File tree

Expand file treeCollapse file tree

2 files changed

+22
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+22
-2
lines changed

‎samples/CMakeLists.txt

Copy file name to clipboardExpand all lines: samples/CMakeLists.txt
+21-1Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required (VERSION 3.13...4.0)
1+
cmake_minimum_required(VERSION 3.23...4.0)
22

33
project (libtcod_samples C CXX)
44

@@ -152,3 +152,23 @@ if (EMSCRIPTEN)
152152
SUFFIX ".html"
153153
)
154154
endif()
155+
156+
if (LIBTCOD_INSTALL AND NOT EMSCRIPTEN)
157+
install(
158+
TARGETS samples_c samples_cpp frost hmtool navier rad ripples weather worldgen
159+
RUNTIME_DEPENDENCIES
160+
PRE_EXCLUDE_REGEXES "api-ms-" "ext-ms-"
161+
POST_EXCLUDE_REGEXES
162+
[[.*system32.*\.dll]]
163+
RUNTIME
164+
FRAMEWORK DESTINATION ${CMAKE_INSTALL_BINDIR} # No clue what the correct path is for this is
165+
)
166+
install(DIRECTORY
167+
${CMAKE_CURRENT_SOURCE_DIR}/../data
168+
DESTINATION ${CMAKE_INSTALL_BINDIR}
169+
)
170+
install(FILES
171+
${CMAKE_CURRENT_SOURCE_DIR}/../terminal.png
172+
DESTINATION ${CMAKE_INSTALL_BINDIR}
173+
)
174+
endif()

‎tests/CMakeLists.txt

Copy file name to clipboardExpand all lines: tests/CMakeLists.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required (VERSION 3.13...4.0)
1+
cmake_minimum_required(VERSION 3.23...4.0)
22
project(PackageTest CXX)
33

44
set(_IMPORT_CHECK_TARGETS "") # Suppress undefined variable in Catch2Targets.cmake.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.