summaryrefslogtreecommitdiff
path: root/src/libical-glib/CMakeLists.txt
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2020-10-01 13:24:23 -0400
committerAllen Winter <allen.winter@kdab.com>2020-10-04 09:11:51 -0400
commit88c43c7d796d8dc5db730f39f3eac14f8c23fffa (patch)
tree07bc62a1c033896abc41d1d77f72df24ac3d4aa5 /src/libical-glib/CMakeLists.txt
parent853e6d74edaa4f2199e10b310fdf9f9e61cce753 (diff)
downloadlibical-git-88c43c7d796d8dc5db730f39f3eac14f8c23fffa.tar.gz
libical-glib: install src-generator to CMAKE_INSTALL_LIBEXECDIR
It is not useful to end-users, so shouldn't be on PATH. Signed-off-by: Allen Winter <allen.winter@kdab.com>
Diffstat (limited to 'src/libical-glib/CMakeLists.txt')
-rw-r--r--src/libical-glib/CMakeLists.txt22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libical-glib/CMakeLists.txt b/src/libical-glib/CMakeLists.txt
index 90f5f412..d32497f1 100644
--- a/src/libical-glib/CMakeLists.txt
+++ b/src/libical-glib/CMakeLists.txt
@@ -1,20 +1,20 @@
add_definitions(-Dlibical_ical_EXPORTS)
-# build ical-glib-src-generator
-add_executable(ical-glib-src-generator
+# build glib-src-generator
+add_executable(glib-src-generator
tools/generator.c
tools/generator.h
tools/xml-parser.c
tools/xml-parser.h
)
-target_compile_options(ical-glib-src-generator PUBLIC ${GLIB_CFLAGS} ${LIBXML_CFLAGS} -DG_LOG_DOMAIN=\"src-generator\")
-target_link_libraries(ical-glib-src-generator ${GLIB_LIBRARIES} ${LIBXML_LIBRARIES})
+target_compile_options(glib-src-generator PUBLIC ${GLIB_CFLAGS} ${LIBXML_CFLAGS} -DG_LOG_DOMAIN=\"src-generator\")
+target_link_libraries(glib-src-generator ${GLIB_LIBRARIES} ${LIBXML_LIBRARIES})
install(
- TARGETS ical-glib-src-generator
+ TARGETS glib-src-generator
EXPORT GlibSrcGenerator
- DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/ical
)
install(
EXPORT GlibSrcGenerator
@@ -76,18 +76,18 @@ if(CMAKE_CROSSCOMPILING)
# import native ical-glib-src-generator when cross-compiling
set(IMPORT_GLIB_SRC_GENERATOR "GLIB_SRC_GENERATOR-NOTFOUND"
CACHE FILEPATH
- "Path to exported ical-glib-src-generator target from native build"
+ "Path to exported glib-src-generator target from native build"
)
include(${IMPORT_GLIB_SRC_GENERATOR})
- set(ical-glib-src-generator_EXE native-ical-glib-src-generator)
+ set(glib-src-generator_EXE native-glib-src-generator)
else()
- set(ical-glib-src-generator_EXE ical-glib-src-generator)
+ set(glib-src-generator_EXE glib-src-generator)
endif()
add_custom_command (
OUTPUT ${LIBICAL_GLIB_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/libical-glib-private.h ${CMAKE_CURRENT_BINARY_DIR}/i-cal-forward-declarations.h
- COMMAND ${ical-glib-src-generator_EXE} "${CMAKE_CURRENT_SOURCE_DIR}/tools" "${CMAKE_CURRENT_SOURCE_DIR}/api"
- DEPENDS ${ical-glib-src-generator_EXE} ${xml_files}
+ COMMAND ${glib-src-generator_EXE} "${CMAKE_CURRENT_SOURCE_DIR}/tools" "${CMAKE_CURRENT_SOURCE_DIR}/api"
+ DEPENDS ${glib-src-generator_EXE} ${xml_files}
)
configure_file(