We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab40f0 commit c4f5cb5Copy full SHA for c4f5cb5
src/celestia/sdl/CMakeLists.txt
@@ -82,10 +82,22 @@ else()
82
target_link_libraries(imgui PUBLIC ${SDL2_LIBRARIES})
83
endif()
84
85
-install(
86
- TARGETS celestia-sdl
87
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
88
- COMPONENT sdlgui
89
-)
+if(WIN32)
+ install(
+ TARGETS celestia-sdl
+ RUNTIME_DEPENDENCIES
+ PRE_EXCLUDE_REGEXES "^api-ms" "^ext-ms-"
90
+ POST_EXCLUDE_REGEXES ".*system32/.*\\.dll$"
91
+ DIRECTORIES $<TARGET_FILE_DIR:celestia> $<TARGET_FILE_DIR:SDL2::SDL2>
92
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
93
+ COMPONENT sdlgui
94
+ )
95
+else()
96
97
98
99
100
101
+endif()
102
103
add_subdirectory(data)
0 commit comments