blob: e578b441f42b4c3cad1e852e930afbf962f99296 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
From: Julian Ospald <hasufell@gentoo.org>
--- Build/CMakeLists.txt
+++ Build/CMakeLists.txt
@@ -11,6 +11,9 @@
project(libRocket C CXX)
+# paths
+include(GNUInstallDirs)
+
set(LIBROCKET_VERSION_MAJOR 1)
set(LIBROCKET_VERSION_MINOR 2)
set(LIBROCKET_VERSION_PATCH 1)
@@ -131,8 +134,8 @@
endif()
install(TARGETS ${NAME}
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
endforeach(library)
@@ -237,7 +240,7 @@
endif()
endif()
- set(SAMPLES_DIR opt/Rocket/Samples)
+ set(SAMPLES_DIR opt/Rocket/Samples CACHE PATH "path to samples dir")
# The samples use the shell library
include_directories(${PROJECT_SOURCE_DIR}/Samples/shell/include)
@@ -256,8 +259,8 @@
target_link_libraries(${sample_LIBRARIES})
install(TARGETS shell
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
list(APPEND samples treeview customlog drag loaddocument)
|