[dss-commits] r8779 - dss/trunk
dss-commits at forum.digitalstrom.org
dss-commits at forum.digitalstrom.org
Tue Sep 22 13:16:43 CEST 2009
Author: jwinkelmann
Date: 2009-09-22 13:16:43 +0200 (Tue, 22 Sep 2009)
New Revision: 8779
Modified:
dss/trunk/CMakeLists.txt
Log:
CMakeLists.txt: add support for 'make install' target
Modified: dss/trunk/CMakeLists.txt
===================================================================
--- dss/trunk/CMakeLists.txt 2009-09-22 08:47:25 UTC (rev 8778)
+++ dss/trunk/CMakeLists.txt 2009-09-22 11:16:43 UTC (rev 8779)
@@ -5,7 +5,7 @@
OPTION(WITH_SIM "Compile and start the simulation" ON)
OPTION(WITH_GCOV "Compile coverage information into the dss" OFF)
IF(NOT WITH_DATADIR)
- SET(WITH_DATADIR "data/" CACHE FILEPATH "Data directory")
+ SET(WITH_DATADIR "${CMAKE_INSTALL_PREFIX}/share/dss/data/" CACHE FILEPATH "Data directory")
ENDIF(NOT WITH_DATADIR)
SET(DSS_GEN_VERSION_CMD "")
@@ -142,5 +142,12 @@
ADD_EXECUTABLE(dss main.cpp namespaces.cpp)
+INSTALL(TARGETS dss RUNTIME DESTINATION bin)
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data DESTINATION ${WITH_DATADIR}
+ PATTERN "/webroot/js/lib/extjs/docs" EXCLUDE
+ PATTERN "/webroot/js/lib/extjs/examples" EXCLUDE
+ )
+
+
TARGET_LINK_LIBRARIES(dss ${TEST_LIB} ${BOOST_TEST_LIB} core unix slaves webservices pthread
mongoose ${REQUIRED_LIBS})
More information about the dss-commits
mailing list