1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Description: Use proper cmake variables to control install locations.
Author: Andrius Merkys <merkys@debian.org>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@
# Commented out line below installs to current directory
# Pick one or the other or edit to set target.
#SET(CMAKE_INSTALL_PREFIX /usr/local )
-SET(CMAKE_INSTALL_PREFIX .. )
+#SET(CMAKE_INSTALL_PREFIX .. )
SET(FS8 -std=c99 -pedantic -Wall -fPIC -c)
SET(FS9 -Wall -std=c99 -pedantic -O3)
@@ -63,7 +63,7 @@
cutemf pmfdual2single reademf readwmf
testbed_emf testbed_pmf testbed_wmf test_mapmodes_emf
RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib)
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
FILE(GLOB hfiles "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
INSTALL(FILES ${hfiles} DESTINATION include)
|