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/mixer | |
parent | 18cef43657bc6841e4dab526fce83a6ad6a34374 (diff) |
added option to build internal modules statically
Diffstat (limited to 'muse2/muse/mixer')
-rw-r--r-- | muse2/muse/mixer/CMakeLists.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/muse2/muse/mixer/CMakeLists.txt b/muse2/muse/mixer/CMakeLists.txt index 62a4ed11..e313f44d 100644 --- a/muse2/muse/mixer/CMakeLists.txt +++ b/muse2/muse/mixer/CMakeLists.txt @@ -59,7 +59,7 @@ file (GLOB mixer_source_files ## ## Define target ## -add_library ( mixer SHARED +add_library ( mixer ${MODULES_BUILD} ${mixer_source_files} ${mixer_mocs} ${mixer_uis} @@ -79,7 +79,7 @@ set (FILES_TO_TRANSLATE ## Compilation flags and target name ## set_target_properties ( mixer - PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -fPIC" + PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h" OUTPUT_NAME muse_mixer ) @@ -94,8 +94,9 @@ target_link_libraries ( mixer ## ## Install location ## -install(TARGETS mixer - DESTINATION ${MusE_MODULES_DIR} - ) - +if ( ${MODULES_BUILD} STREQUAL SHARED ) + install(TARGETS mixer + DESTINATION ${MusE_MODULES_DIR} + ) +endif ( ${MODULES_BUILD} STREQUAL SHARED ) |