diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2012-01-29 19:59:56 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2012-01-29 21:48:17 +0100 |
commit | 72b562760e568bc4192497ab1f42790ddd288552 (patch) | |
tree | b2dee86964f8ddb4863730e266133c01a67aad92 | |
parent | 2e1adc3d561c5a0c4117c010a7bd87a74dac8046 (diff) | |
download | logdiag-72b562760e568bc4192497ab1f42790ddd288552.tar.gz logdiag-72b562760e568bc4192497ab1f42790ddd288552.tar.xz logdiag-72b562760e568bc4192497ab1f42790ddd288552.zip |
Make CMakeLists.txt targets more generic.
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c2afe1e..e356d28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ if (CONVERT_EXECUTABLE AND NOT WIN32) set (icon_png_path ${icon_base}/${icon_size}/apps) set (icon_png ${icon_png_path}/logdiag.png) list (APPEND icon_png_list ${icon_png}) - set (icon_symbolic logdiag_icons_${icon_size}) + set (icon_symbolic ${CMAKE_PROJECT_NAME}_icons_${icon_size}) list (APPEND icon_symbolic_list ${icon_symbolic}) add_custom_command (OUTPUT ${icon_symbolic} @@ -83,7 +83,8 @@ if (CONVERT_EXECUTABLE AND NOT WIN32) endforeach (icon_size) set (icon_ico ${CMAKE_CURRENT_SOURCE_DIR}/share/logdiag.ico) - add_custom_target (logdiag_icons DEPENDS ${icon_symbolic_list} + add_custom_target (${CMAKE_PROJECT_NAME}_icons + DEPENDS ${icon_symbolic_list} COMMAND ${CONVERT_EXECUTABLE} ${icon_png_list} ${icon_ico} COMMENT "Generating logdiag.ico" VERBATIM) endif (CONVERT_EXECUTABLE AND NOT WIN32) @@ -265,7 +266,7 @@ endif (NOT GLIB_COMPILE_SCHEMAS_EXECUTABLE) set (GSETTINGS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/share") set (GSETTINGS_SCHEMAS "${GSETTINGS_DIR}/org.logdiag.gschema.xml") -add_custom_target (logdiag_gschema_check +add_custom_target (${CMAKE_PROJECT_NAME}_gschema_check COMMAND ${GLIB_COMPILE_SCHEMAS_EXECUTABLE} --dry-run "${GSETTINGS_DIR}" DEPENDS "${GSETTINGS_SCHEMAS}" COMMENT "Checking GSettings schema files" VERBATIM) @@ -278,7 +279,8 @@ if (OPTION_NOINSTALL) "--targetdir=${CMAKE_CURRENT_BINARY_DIR}" "${GSETTINGS_DIR}" DEPENDS "${GSETTINGS_SCHEMAS}" COMMENT "Compiling GSettings schema files" VERBATIM) - add_custom_target (logdiag_gschema ALL DEPENDS "${GSETTINGS_COMPILED_SCHEMA}") + add_custom_target (${CMAKE_PROJECT_NAME}_gschema ALL + DEPENDS "${GSETTINGS_COMPILED_SCHEMA}") endif (OPTION_NOINSTALL) # Installation |