summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-23 14:39:36 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-23 14:39:36 -0200
commit0c1ef1849561b56a9f06f0225887b65b0e07beec (patch)
tree816dd089de5d7dec5b7eeffa5f06dad63d67f8cb /CMakeLists.txt
parentf94e3ab6047ee725c11a6154ff10892811e9226c (diff)
downloadgeneratorrunner-0c1ef1849561b56a9f06f0225887b65b0e07beec.tar.gz
generatorrunner-0c1ef1849561b56a9f06f0225887b65b0e07beec.tar.xz
generatorrunner-0c1ef1849561b56a9f06f0225887b65b0e07beec.zip
Install FindGenRunner.cmake and libgenrunner in the correct directory.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50362f6..2c9b8f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,14 +67,16 @@ add_custom_target(dist
| bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
-install(TARGETS genrunner DESTINATION ${LIB_INSTALL_DIR})
+install(TARGETS genrunner LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+ RUNTIME DESTINATION bin)
install(TARGETS generatorrunner DESTINATION bin)
install(FILES generator.h DESTINATION include/generatorrunner)
install(FILES generatorrunnermacros.h DESTINATION include/generatorrunner)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/generatorrunner.pc DESTINATION
${LIB_INSTALL_DIR}/pkgconfig)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FindGeneratorRunner.cmake
- DESTINATION share/cmake-2.6/Modules)
+ DESTINATION "share/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules")
#FIXME: manpages should be installed only on Linux targets
file(GLOB manpages ${CMAKE_CURRENT_SOURCE_DIR}/*.1)