diff options
Diffstat (limited to 'muse2/muse/driver/CMakeLists.txt')
-rw-r--r-- | muse2/muse/driver/CMakeLists.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/muse2/muse/driver/CMakeLists.txt b/muse2/muse/driver/CMakeLists.txt index fbac3f0b..0f9857f1 100644 --- a/muse2/muse/driver/CMakeLists.txt +++ b/muse2/muse/driver/CMakeLists.txt @@ -33,7 +33,7 @@ file (GLOB driver_source_files ## ## Define target ## -add_library ( driver SHARED +add_library ( driver ${MODULES_BUILD} # ${PROJECT_BINARY_DIR}/all.h.pch ${driver_source_files} ) @@ -51,7 +51,7 @@ set (FILES_TO_TRANSLATE ## Compilation flags and target name ## set_target_properties( driver - PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -fPIC" + PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h" OUTPUT_NAME muse_driver ) @@ -68,6 +68,8 @@ target_link_libraries ( driver ## ## Install location ## -install(TARGETS driver - DESTINATION ${MusE_MODULES_DIR} - ) +if ( ${MODULES_BUILD} STREQUAL SHARED ) + install(TARGETS driver + DESTINATION ${MusE_MODULES_DIR} + ) +endif ( ${MODULES_BUILD} STREQUAL SHARED ) |