blob: 71157bca59cca22c302bfcdcd100889590dd79d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
https://github.com/wgois/OIS/commit/0536741549a157627d4306f6e19f1cc5cb52cef8
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -229,7 +229,13 @@ if (OIS_BUILD_DEMOS)
endif()
-set(LIB_INSTALL_DIR "lib")
+if(UNIX)
+ include(GNUInstallDirs)
+ set(LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR})
+else()
+ set(LIB_INSTALL_DIR "lib")
+endif()
+
set(OIS_LIB_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR})
file(GLOB PUBLIC_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/includes/*.h")
@@ -240,8 +246,8 @@ install(FILES ${PUBLIC_HEADERS}
install(TARGETS OIS
RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
FRAMEWORK DESTINATION Library/Frameworks
)
|