From 6cad77308d5c794052daaf3dd301b89bc894bd63 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Mon, 31 Jan 2011 18:50:38 +0000 Subject: added option to build internal modules statically --- muse2/al/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'muse2/al') 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 ) -- cgit v1.2.3