summaryrefslogtreecommitdiff
path: root/muse2/synti/organ
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2010-12-20 04:54:36 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2010-12-20 04:54:36 +0000
commit673172e3ffb8e345b2bbfb6596ac3d79a1e17f14 (patch)
treed6535f36f0ff55b0f313d5e0aac8823c3fd98161 /muse2/synti/organ
parentda484f0563218c2432ee4d6f2eb3ce8c7c298622 (diff)
Major cmake cleanup. Please see the ChangeLog.
Diffstat (limited to 'muse2/synti/organ')
-rw-r--r--muse2/synti/organ/CMakeLists.txt53
1 files changed, 42 insertions, 11 deletions
diff --git a/muse2/synti/organ/CMakeLists.txt b/muse2/synti/organ/CMakeLists.txt
index 92ffebee..0d8dda90 100644
--- a/muse2/synti/organ/CMakeLists.txt
+++ b/muse2/synti/organ/CMakeLists.txt
@@ -18,42 +18,73 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
-QT4_WRAP_CPP ( organ_mocs organgui.h )
+##
+## Expand Qt macros in source files
+##
+QT4_WRAP_CPP ( organ_mocs
+ organgui.h
+ )
-file (GLOB UI_FILES organguibase.ui )
-QT4_WRAP_UI ( organ_uis ${UI_FILES} )
+##
+## UI files
+##
+file (GLOB organ_ui_files
+ organguibase.ui
+ )
+QT4_WRAP_UI ( organ_uis ${organ_ui_files} )
-file (GLOB SOURCE_FILES
+##
+## List of source files to compile
+##
+file (GLOB organ_source_files
organ.cpp
organgui.cpp
# reverb.cpp
# routing.cpp
- # organgui.h
)
+##
+## Define target
+##
add_library ( organ SHARED
${PROJECT_SOURCE_DIR}/muse/xml.cpp
- ${SOURCE_FILES}
+ ${organ_source_files}
${organ_mocs}
${organ_uis}
)
-set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} ${UI_FILES} CACHE INTERNAL "")
+##
+## Append to the list of translations
+##
+set (FILES_TO_TRANSLATE
+ ${FILES_TO_TRANSLATE}
+ ${organ_source_files}
+ ${organ_ui_files}
+ CACHE INTERNAL ""
+ )
# - tell cmake to name target organ.so instead of
# liborgan.so
# - use precompiled header files
#
set_target_properties ( organ
- PROPERTIES PREFIX ""
- COMPILE_FLAGS "-fvisibility=hidden -O2 -include ${PROJECT_BINARY_DIR}/all-pic.h"
- )
+ PROPERTIES PREFIX ""
+ COMPILE_FLAGS "-fvisibility=hidden -O2 -include ${PROJECT_BINARY_DIR}/all-pic.h"
+ )
+##
+## Linkage
+##
target_link_libraries(organ
synti
# awl
${QT_LIBRARIES}
)
-install_targets ( /${CMAKE_INSTALL_LIBDIR}/${MusE_INSTALL_NAME}/synthi/ organ )
+##
+## Install location
+##
+install( TARGETS organ
+ DESTINATION ${MusE_SYNTHI_DIR}
+ )