From 6bbdace033639cad3f40e47869047cc0668ad5c2 Mon Sep 17 00:00:00 2001 From: Jens Olav Nygaard Date: Wed, 16 Oct 2013 14:21:51 +0200 Subject: [PATCH] Debug postfix tag added. --- CMakeLists.txt | 4 ++++ config/dbg/mod_trell.load | 1 + src/mod_trell/CMakeLists.txt | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 config/dbg/mod_trell.load diff --git a/CMakeLists.txt b/CMakeLists.txt index b28d1a1..d0fba17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,10 @@ CMAKE_MINIMUM_REQUIRED( VERSION 2.6) SET( version_number "0.2.5" ) SET(TINIA_VERSION ${version_number}) +# Tagging debug-libraries +# Note: If the postfix string is changed, remember also to modify the contents of config/debug/mod_trell.load! +SET(CMAKE_DEBUG_POSTFIX "d") + # Set shared for linux: IF(NOT WIN32) IF(NOT DEFINED ${BUILD_SHARED_LIBS}) diff --git a/config/dbg/mod_trell.load b/config/dbg/mod_trell.load new file mode 100644 index 0000000..73bec6b --- /dev/null +++ b/config/dbg/mod_trell.load @@ -0,0 +1 @@ +LoadModule trell_module /usr/var/trell/module/libmod_tinia_trelld.so diff --git a/src/mod_trell/CMakeLists.txt b/src/mod_trell/CMakeLists.txt index 14d238a..d70876f 100644 --- a/src/mod_trell/CMakeLists.txt +++ b/src/mod_trell/CMakeLists.txt @@ -27,6 +27,24 @@ INSTALL( FILES ../../config/mod_trell.load ../../config/mod_trell.conf PERMISSIONS WORLD_READ OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ COMPONENT mod_trell ) + +# Note that mod_trell.conf is the same for both Debug and Release, mod_trell.load differs. +# Note also that the one for Release below is just a copy of the default one above. + +INSTALL( FILES ../../config/dbg/mod_trell.load ../../config/mod_trell.conf + DESTINATION share/tinia/conf + PERMISSIONS WORLD_READ OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ + CONFIGURATIONS Debug + COMPONENT mod_trell +) + +INSTALL( FILES ../../config/mod_trell.load ../../config/mod_trell.conf + DESTINATION share/tinia/conf + PERMISSIONS WORLD_READ OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ + CONFIGURATIONS Release + COMPONENT mod_trell +) + INSTALL( DIRECTORY "../../js" DESTINATION var/trell COMPONENT mod_trell