summaryrefslogtreecommitdiff
path: root/muse2/awl
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2011-01-31 18:50:38 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2011-01-31 18:50:38 +0000
commit6cad77308d5c794052daaf3dd301b89bc894bd63 (patch)
tree62e45a1887e1428105ba499176a68644f92c7a6b /muse2/awl
parent18cef43657bc6841e4dab526fce83a6ad6a34374 (diff)
added option to build internal modules statically
Diffstat (limited to 'muse2/awl')
-rw-r--r--muse2/awl/CMakeLists.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/muse2/awl/CMakeLists.txt b/muse2/awl/CMakeLists.txt
index 871186be..21772470 100644
--- a/muse2/awl/CMakeLists.txt
+++ b/muse2/awl/CMakeLists.txt
@@ -90,7 +90,7 @@ file (GLOB awl_source_files
##
## Define target
##
-add_library ( awl SHARED
+add_library ( awl ${MODULES_BUILD}
${awl_source_files}
${awl_mocs}
)
@@ -108,7 +108,7 @@ set (FILES_TO_TRANSLATE
## Compilation flags and target name
##
set_target_properties( awl
- PROPERTIES COMPILE_FLAGS "-fPIC -include ${PROJECT_BINARY_DIR}/all.h"
+ PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h"
OUTPUT_NAME muse_awl
)
@@ -123,7 +123,8 @@ target_link_libraries ( awl
##
## Install location
##
-install(TARGETS awl
- DESTINATION ${MusE_MODULES_DIR}
- )
-
+if ( ${MODULES_BUILD} STREQUAL SHARED )
+ install(TARGETS awl
+ DESTINATION ${MusE_MODULES_DIR}
+ )
+endif ( ${MODULES_BUILD} STREQUAL SHARED )