summaryrefslogtreecommitdiff
path: root/muse2/al
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/al
parent18cef43657bc6841e4dab526fce83a6ad6a34374 (diff)
added option to build internal modules statically
Diffstat (limited to 'muse2/al')
-rw-r--r--muse2/al/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/muse2/al/CMakeLists.txt b/muse2/al/CMakeLists.txt
index a0031143..55e729ab 100644
--- a/muse2/al/CMakeLists.txt
+++ b/muse2/al/CMakeLists.txt
@@ -40,7 +40,7 @@ endif (USE_SSE)
##
## Define target
##
-add_library(al SHARED
+add_library(al ${MODULES_BUILD}
${PROJECT_BINARY_DIR}/all.h.pch
${al_source_files}
)
@@ -57,7 +57,7 @@ set_source_files_properties(
dspXMM.cpp
sig.cpp
xml.cpp
- PROPERTIES COMPILE_FLAGS "-fPIC -include ${PROJECT_BINARY_DIR}/all.h"
+ PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h"
)
set_source_files_properties(
dspSSE.cpp
@@ -74,6 +74,8 @@ target_link_libraries ( al
##
## Install location
##
-install(TARGETS al
- DESTINATION ${MusE_MODULES_DIR}
- )
+if ( ${MODULES_BUILD} STREQUAL SHARED )
+ install(TARGETS al
+ DESTINATION ${MusE_MODULES_DIR}
+ )
+endif ( ${MODULES_BUILD} STREQUAL SHARED )