diff options
| author | Orcan Ogetbil <oget.fedora@gmail.com> | 2011-01-31 18:50:38 +0000 | 
|---|---|---|
| committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2011-01-31 18:50:38 +0000 | 
| commit | 6cad77308d5c794052daaf3dd301b89bc894bd63 (patch) | |
| tree | 62e45a1887e1428105ba499176a68644f92c7a6b /muse2/muse/liste | |
| parent | 18cef43657bc6841e4dab526fce83a6ad6a34374 (diff) | |
added option to build internal modules statically
Diffstat (limited to 'muse2/muse/liste')
| -rw-r--r-- | muse2/muse/liste/CMakeLists.txt | 13 | 
1 files changed, 7 insertions, 6 deletions
| diff --git a/muse2/muse/liste/CMakeLists.txt b/muse2/muse/liste/CMakeLists.txt index 4c0b61a4..d25a2077 100644 --- a/muse2/muse/liste/CMakeLists.txt +++ b/muse2/muse/liste/CMakeLists.txt @@ -55,7 +55,7 @@ file (GLOB liste_source_files  ##  ## Define target  ## -add_library ( liste SHARED +add_library ( liste ${MODULES_BUILD}        ${liste_source_files}        ${liste_mocs}        ${liste_uis} @@ -75,7 +75,7 @@ set (FILES_TO_TRANSLATE  ## Compilation flags and target name  ##  set_target_properties( liste -      PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -fPIC" +      PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h"        OUTPUT_NAME muse_liste        ) @@ -91,7 +91,8 @@ target_link_libraries ( liste  ##  ## Install location  ## -install(TARGETS liste -      DESTINATION ${MusE_MODULES_DIR} -      ) - +if ( ${MODULES_BUILD} STREQUAL SHARED ) +      install(TARGETS liste +            DESTINATION ${MusE_MODULES_DIR} +            ) +endif ( ${MODULES_BUILD} STREQUAL SHARED ) | 
