summaryrefslogtreecommitdiff
path: root/muse2/muse/remote
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/muse/remote
parent18cef43657bc6841e4dab526fce83a6ad6a34374 (diff)
added option to build internal modules statically
Diffstat (limited to 'muse2/muse/remote')
-rw-r--r--muse2/muse/remote/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/muse2/muse/remote/CMakeLists.txt b/muse2/muse/remote/CMakeLists.txt
index 87ad9672..22943e71 100644
--- a/muse2/muse/remote/CMakeLists.txt
+++ b/muse2/muse/remote/CMakeLists.txt
@@ -28,7 +28,7 @@ file (GLOB remote_source_files
##
## Define target
##
-add_library(remote SHARED
+add_library(remote ${MODULES_BUILD}
${remote_source_files}
${PROJECT_BINARY_DIR}/all.h.pch
)
@@ -47,12 +47,14 @@ set (FILES_TO_TRANSLATE
##
set_source_files_properties(
pyapi.cpp
- PROPERTIES COMPILE_FLAGS "-fPIC -include ${PROJECT_BINARY_DIR}/all.h -include ${PYTHON_INCLUDES} -DENABLE_PYTHON"
+ PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -include ${PYTHON_INCLUDES} -DENABLE_PYTHON"
)
##
## Install location
##
-install(TARGETS remote
- DESTINATION ${MusE_MODULES_DIR}
- )
+if ( ${MODULES_BUILD} STREQUAL SHARED )
+ install(TARGETS remote
+ DESTINATION ${MusE_MODULES_DIR}
+ )
+endif ( ${MODULES_BUILD} STREQUAL SHARED )