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/driver | |
parent | 18cef43657bc6841e4dab526fce83a6ad6a34374 (diff) |
added option to build internal modules statically
Diffstat (limited to 'muse2/muse/driver')
-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 ) |