diff options
author | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-12-20 04:54:36 +0000 |
---|---|---|
committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-12-20 04:54:36 +0000 |
commit | 673172e3ffb8e345b2bbfb6596ac3d79a1e17f14 (patch) | |
tree | d6535f36f0ff55b0f313d5e0aac8823c3fd98161 /muse2/synti/libsynti | |
parent | da484f0563218c2432ee4d6f2eb3ce8c7c298622 (diff) |
Major cmake cleanup. Please see the ChangeLog.
Diffstat (limited to 'muse2/synti/libsynti')
-rw-r--r-- | muse2/synti/libsynti/CMakeLists.txt | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/muse2/synti/libsynti/CMakeLists.txt b/muse2/synti/libsynti/CMakeLists.txt index 0b257249..8b7a662b 100644 --- a/muse2/synti/libsynti/CMakeLists.txt +++ b/muse2/synti/libsynti/CMakeLists.txt @@ -20,7 +20,10 @@ include(${PROJECT_SOURCE_DIR}/pch.txt) -file (GLOB SOURCE_FILES +## +## List of source files to compile +## +file (GLOB synti_source_files mess.cpp # mess2.cpp gui.cpp @@ -31,20 +34,37 @@ file (GLOB SOURCE_FILES ## mpevent.cpp ) +## +## Define target +## add_library(synti SHARED ${PROJECT_BINARY_DIR}/all-pic.h.pch - ${SOURCE_FILES} + ${synti_source_files} ) -set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} CACHE INTERNAL "") - -install(TARGETS synti DESTINATION ${MUSE_MODULES_DIR}) +## +## Append to the list of translations +## +set (FILES_TO_TRANSLATE + ${FILES_TO_TRANSLATE} + ${synti_source_files} + CACHE INTERNAL "" + ) +## +## Compilation flags and target name +## # # -fPIC is necessary for 64 bit systems # set_target_properties( synti - PROPERTIES COMPILE_FLAGS "-fPIC -include ${PROJECT_BINARY_DIR}/all-pic.h" - OUTPUT_NAME muse_synti - ) + PROPERTIES COMPILE_FLAGS "-fPIC -include ${PROJECT_BINARY_DIR}/all-pic.h" + OUTPUT_NAME muse_synti + ) +## +## Install location +## +install(TARGETS synti + DESTINATION ${MusE_MODULES_DIR} + ) |