summaryrefslogtreecommitdiff
path: root/muse2/muse/instruments
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/muse/instruments
parentda484f0563218c2432ee4d6f2eb3ce8c7c298622 (diff)
Major cmake cleanup. Please see the ChangeLog.
Diffstat (limited to 'muse2/muse/instruments')
-rw-r--r--muse2/muse/instruments/CMakeLists.txt65
1 files changed, 46 insertions, 19 deletions
diff --git a/muse2/muse/instruments/CMakeLists.txt b/muse2/muse/instruments/CMakeLists.txt
index 8930edf0..b068798a 100644
--- a/muse2/muse/instruments/CMakeLists.txt
+++ b/muse2/muse/instruments/CMakeLists.txt
@@ -18,45 +18,72 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
+##
+## Expand Qt macros in source files
+##
QT4_WRAP_CPP ( instruments_mocs
- # minstrument.h editinstrument.h
editinstrument.h
+ # minstrument.h
)
-file (GLOB UI_FILES
+##
+## UI files
+##
+file (GLOB instruments_ui_files
+ # ccontrollerbase.ui # not built. It needs to be converted to Qt4 for revival.
editinstrumentbase.ui
)
+QT4_WRAP_UI ( instruments_uis ${instruments_ui_files} )
-QT4_WRAP_UI ( instruments_ui_headers
- ${UI_FILES}
- )
-
-# Note that ccontrollerbase.ui is not built. It needs to be converted to Qt4 for revival.
-
-file (GLOB SOURCE_FILES
- minstrument.cpp
+##
+## List of source files to compile
+##
+file (GLOB instruments_source_files
editinstrument.cpp
- minstrument.h
editinstrument.h
+ minstrument.cpp
+ minstrument.h
)
+##
+## Define target
+##
add_library ( instruments SHARED
- ${SOURCE_FILES}
+ ${instruments_source_files}
${instruments_mocs}
- ${instruments_ui_headers}
+ ${instruments_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}
+ ${instruments_source_files}
+ ${instruments_ui_files}
+ CACHE INTERNAL ""
+ )
-install(TARGETS instruments DESTINATION ${MUSE_MODULES_DIR})
+##
+## Compilation flags and target name
+##
+set_target_properties( instruments
+ PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -fPIC"
+ OUTPUT_NAME muse_instruments
+ )
+##
+## Linkage
+##
target_link_libraries ( instruments
${QT_LIBRARIES}
icons
)
-set_target_properties( instruments
- PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -fPIC"
- OUTPUT_NAME muse_instruments
- )
+##
+## Install location
+##
+install(TARGETS instruments
+ DESTINATION ${MusE_MODULES_DIR}
+ )