]> git.xonotic.org Git - xonotic/netradiant.git/blob - bundle/CMakeLists.txt
bundle: linux shared lib bundling
[xonotic/netradiant.git] / bundle / CMakeLists.txt
1 if (WIN32)
2     set(BUNDLE_OS_NAME "windows")
3 elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
4     set(BUNDLE_OS_NAME "linux")
5 else ()
6     set(BUNDLE_OS_NAME "unsupported")
7 endif ()
8
9 add_custom_target(bundle ALL
10     COMMAND "${PROJECT_SOURCE_DIR}/library-bundler"
11     "${BUNDLE_OS_NAME}" "${PROJECT_BINARY_DIR}"
12     VERBATIM
13     COMMENT "Bundling libraries"
14 )
15
16 install(DIRECTORY
17     ${PROJECT_BINARY_DIR}/lib
18     ${PROJECT_BINARY_DIR}/share
19     DESTINATION ${CMAKE_INSTALL_PREFIX}
20 )