aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-11 20:52:49 -0600
committerTed Gould <ted@gould.cx>2014-02-11 20:52:49 -0600
commit66edc177867c09e696552a73862c29485194e704 (patch)
treeb6e232201f5dbb7104fee09a857278400c710177 /src/CMakeLists.txt
parent7da8553896b1967d44292e211e9573e2d2d18e74 (diff)
downloadayatana-indicator-sound-66edc177867c09e696552a73862c29485194e704.tar.gz
ayatana-indicator-sound-66edc177867c09e696552a73862c29485194e704.tar.bz2
ayatana-indicator-sound-66edc177867c09e696552a73862c29485194e704.zip
Switch the build to have a library of all the vala components
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt29
1 files changed, 20 insertions, 9 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3ee6a65..ca1eb82 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -47,11 +47,6 @@ vala_add(indicator-sound-service
accounts-service-user
)
vala_add(indicator-sound-service
- main.vala
- DEPENDS
- service
-)
-vala_add(indicator-sound-service
volume-control.vala
)
vala_add(indicator-sound-service
@@ -110,16 +105,33 @@ set(
)
###########################
-# Executable
+# Lib
###########################
add_definitions(
-w
)
+add_library(
+ indicator-sound-service-lib STATIC
+ ${INDICATOR_SOUND_SOURCES}
+)
+
+target_link_libraries(
+ indicator-sound-service-lib
+ ${PULSEAUDIO_LIBRARIES}
+ ${SOUNDSERVICE_LIBRARIES}
+)
+
+###########################
+# Executable
+###########################
+
+include_directories(${CMAKE_BINARY_DIR})
+
add_executable(
indicator-sound-service-bin
- ${INDICATOR_SOUND_SOURCES}
+ main.c
)
set_target_properties(
@@ -130,8 +142,7 @@ set_target_properties(
target_link_libraries(
indicator-sound-service-bin
- ${PULSEAUDIO_LIBRARIES}
- ${SOUNDSERVICE_LIBRARIES}
+ indicator-sound-service-lib
)
###########################