diff options
Diffstat (limited to 'muse2/muse/arranger/CMakeLists.txt')
-rw-r--r-- | muse2/muse/arranger/CMakeLists.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/muse2/muse/arranger/CMakeLists.txt b/muse2/muse/arranger/CMakeLists.txt index 21a06698..c681245e 100644 --- a/muse2/muse/arranger/CMakeLists.txt +++ b/muse2/muse/arranger/CMakeLists.txt @@ -41,7 +41,7 @@ file (GLOB arranger_source_files # # Define target # -add_library ( arranger SHARED +add_library ( arranger ${MODULES_BUILD} ${arranger_source_files} ${arranger_mocs} ) @@ -59,7 +59,7 @@ set (FILES_TO_TRANSLATE # Compilation flags and target name # set_target_properties( arranger - PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -fPIC" + PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h" OUTPUT_NAME muse_arranger ) @@ -76,7 +76,8 @@ target_link_libraries ( arranger # # Install location # -install(TARGETS arranger - DESTINATION ${MusE_MODULES_DIR} - ) - +if ( ${MODULES_BUILD} STREQUAL SHARED ) + install(TARGETS arranger + DESTINATION ${MusE_MODULES_DIR} + ) +endif ( ${MODULES_BUILD} STREQUAL SHARED ) |