on xenial help sign in
use custom target for service files
commitb8b4e788c9fa7f197a0942b6bc1bf2515356ec5d authorNick Dedekind <nicholas.dedekind@gmail.com> dateWed 3 Jul 2013, 16:15 (13 years ago) parentfee59e9
1 file changed+8−7
src/Panel/Indicators/servicefiles/CMakeLists.txt+8−7
src/Panel/Indicators/servicefiles/CMakeLists.txt+8−7
@@ -1,4 +1,4 @@
1−set(INDICATOR_FILES
1+file(GLOB INDICATOR_SERVICE_FILES
22 ${CMAKE_CURRENT_SOURCE_DIR}/com.canonical.indicator.battery
33 ${CMAKE_CURRENT_SOURCE_DIR}/com.canonical.indicator.messages
44 ${CMAKE_CURRENT_SOURCE_DIR}/com.canonical.indicator.time
@@ -6,12 +6,13 @@ set(INDICATOR_FILES
66 ${CMAKE_CURRENT_SOURCE_DIR}/com.canonical.settings.sound
77)
88
9−# copy indicators file into build directory for shadow builds
10−file(COPY ${INDICATOR_FILES}
11− DESTINATION ${CMAKE_BINARY_DIR}/share/unity/indicators
9+# copy indicators files into build directory for shadow builds
10+add_custom_target(IndicatorsServiceFiles ALL
11+ COMMAND mkdir -p ${CMAKE_BINARY_DIR}/share/unity/indicators
12+ COMMAND cp ${INDICATOR_SERVICE_FILES} ${CMAKE_BINARY_DIR}/share/unity/indicators
13+ DEPENDS ${INDICATOR_SERVICE_FILES}
1214)
1315
14−# install indicator file
15−install(FILES ${INDICATOR_FILES}
16− DESTINATION ${SHELL_APP_DIR}/unity/indicators
16+install(FILES ${INDICATOR_SERVICE_FILES}
17+ DESTINATION ${SHELL_APP_DIR}/unity/indicators
1718)