summaryrefslogtreecommitdiff
path: root/muse2/muse/driver
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/driver
parentda484f0563218c2432ee4d6f2eb3ce8c7c298622 (diff)
Major cmake cleanup. Please see the ChangeLog.
Diffstat (limited to 'muse2/muse/driver')
-rw-r--r--muse2/muse/driver/CMakeLists.txt52
1 files changed, 38 insertions, 14 deletions
diff --git a/muse2/muse/driver/CMakeLists.txt b/muse2/muse/driver/CMakeLists.txt
index 0116fc1f..fbac3f0b 100644
--- a/muse2/muse/driver/CMakeLists.txt
+++ b/muse2/muse/driver/CMakeLists.txt
@@ -18,21 +18,46 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
-file (GLOB SOURCE_FILES
- audiodev.h alsamidi.cpp alsamidi.h jack.cpp jackaudio.h
- dummyaudio.cpp alsatimer.cpp alsatimer.h timerdev.h rtctimer.cpp rtctimer.h
- jackmidi.cpp jackmidi.h
+##
+## List of source files to compile
+##
+file (GLOB driver_source_files
+ alsamidi.cpp
+ alsatimer.cpp
+ dummyaudio.cpp
+ jack.cpp
+ jackmidi.cpp
+ rtctimer.cpp
)
+##
+## Define target
+##
add_library ( driver SHARED
# ${PROJECT_BINARY_DIR}/all.h.pch
- ${SOURCE_FILES}
+ ${driver_source_files}
)
-set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} CACHE INTERNAL "")
+##
+## Append to the list of translations
+##
+set (FILES_TO_TRANSLATE
+ ${FILES_TO_TRANSLATE}
+ ${driver_source_files}
+ CACHE INTERNAL ""
+ )
-install(TARGETS driver DESTINATION ${MUSE_MODULES_DIR})
+##
+## Compilation flags and target name
+##
+set_target_properties( driver
+ PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -fPIC"
+ OUTPUT_NAME muse_driver
+ )
+##
+## Linkage
+##
target_link_libraries ( driver
${ALSA_LIBRARIES}
${JACK_LIBRARIES}
@@ -40,10 +65,9 @@ target_link_libraries ( driver
mplugins
)
-
-
-set_target_properties( driver
- PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -fPIC"
- OUTPUT_NAME muse_driver
- )
-
+##
+## Install location
+##
+install(TARGETS driver
+ DESTINATION ${MusE_MODULES_DIR}
+ )