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/instruments | |
parent | 18cef43657bc6841e4dab526fce83a6ad6a34374 (diff) |
added option to build internal modules statically
Diffstat (limited to 'muse2/muse/instruments')
-rw-r--r-- | muse2/muse/instruments/CMakeLists.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/muse2/muse/instruments/CMakeLists.txt b/muse2/muse/instruments/CMakeLists.txt index b068798a..bca57336 100644 --- a/muse2/muse/instruments/CMakeLists.txt +++ b/muse2/muse/instruments/CMakeLists.txt @@ -48,7 +48,7 @@ file (GLOB instruments_source_files ## ## Define target ## -add_library ( instruments SHARED +add_library ( instruments ${MODULES_BUILD} ${instruments_source_files} ${instruments_mocs} ${instruments_uis} @@ -68,7 +68,7 @@ set (FILES_TO_TRANSLATE ## Compilation flags and target name ## set_target_properties( instruments - PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -fPIC" + PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h" OUTPUT_NAME muse_instruments ) @@ -83,7 +83,8 @@ target_link_libraries ( instruments ## ## Install location ## -install(TARGETS instruments - DESTINATION ${MusE_MODULES_DIR} - ) - +if ( ${MODULES_BUILD} STREQUAL SHARED ) + install(TARGETS instruments + DESTINATION ${MusE_MODULES_DIR} + ) +endif ( ${MODULES_BUILD} STREQUAL SHARED ) |