diff options
author | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-12-19 08:57:19 +0000 |
---|---|---|
committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-12-19 08:57:19 +0000 |
commit | 520e889a3e58fdaa99a0c13a40d1c3e4affe60b1 (patch) | |
tree | 3e671e957f24f22f6d2d540cde8634848069445e /muse2/muse/instruments | |
parent | 54dd5ec68d550408be99118c59df2a91c33183f7 (diff) |
Split individual parts into their own shared libraries. Moved main() into its own file.
Diffstat (limited to 'muse2/muse/instruments')
-rw-r--r-- | muse2/muse/instruments/CMakeLists.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/muse2/muse/instruments/CMakeLists.txt b/muse2/muse/instruments/CMakeLists.txt index 8cc5e6b8..8930edf0 100644 --- a/muse2/muse/instruments/CMakeLists.txt +++ b/muse2/muse/instruments/CMakeLists.txt @@ -40,7 +40,7 @@ file (GLOB SOURCE_FILES editinstrument.h ) -add_library ( instruments STATIC +add_library ( instruments SHARED ${SOURCE_FILES} ${instruments_mocs} ${instruments_ui_headers} @@ -48,7 +48,15 @@ add_library ( instruments STATIC set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} ${UI_FILES} CACHE INTERNAL "") +install(TARGETS instruments DESTINATION ${MUSE_MODULES_DIR}) + +target_link_libraries ( instruments + ${QT_LIBRARIES} + icons + ) + set_target_properties( instruments - PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h" + PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -fPIC" + OUTPUT_NAME muse_instruments ) |