diff options
author | Ben Wolsieffer <benwolsieffer@gmail.com> | 2021-01-10 12:21:31 -0500 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2021-01-11 17:14:11 -0500 |
commit | 1dd6065e857093d55ce818755be6cf21f0a43a64 (patch) | |
tree | 4510a6febe53457d23b01d60bd90bf1f8df315fb /src/libical-glib/CMakeLists.txt | |
parent | 866d98dc06f85fd216a38d50dcf5852a29473090 (diff) | |
download | libical-git-1dd6065e857093d55ce818755be6cf21f0a43a64.tar.gz |
libical-glib: rename glib-src-generator to ical-glib-src-generator
Also, move it to libexec/libical from libexec/ical.
Diffstat (limited to 'src/libical-glib/CMakeLists.txt')
-rw-r--r-- | src/libical-glib/CMakeLists.txt | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/libical-glib/CMakeLists.txt b/src/libical-glib/CMakeLists.txt index d32497f1..13f77aac 100644 --- a/src/libical-glib/CMakeLists.txt +++ b/src/libical-glib/CMakeLists.txt @@ -1,23 +1,23 @@ add_definitions(-Dlibical_ical_EXPORTS) -# build glib-src-generator -add_executable(glib-src-generator +# build ical-glib-src-generator +add_executable(ical-glib-src-generator tools/generator.c tools/generator.h tools/xml-parser.c tools/xml-parser.h ) -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}) +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}) install( - TARGETS glib-src-generator - EXPORT GlibSrcGenerator - RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/ical + TARGETS ical-glib-src-generator + EXPORT IcalGlibSrcGenerator + RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/libical ) install( - EXPORT GlibSrcGenerator + EXPORT IcalGlibSrcGenerator NAMESPACE native- DESTINATION ${LIB_INSTALL_DIR}/cmake/LibIcal ) @@ -74,20 +74,20 @@ endforeach() if(CMAKE_CROSSCOMPILING) # import native ical-glib-src-generator when cross-compiling - set(IMPORT_GLIB_SRC_GENERATOR "GLIB_SRC_GENERATOR-NOTFOUND" + set(IMPORT_ICAL_GLIB_SRC_GENERATOR "ICAL_GLIB_SRC_GENERATOR-NOTFOUND" CACHE FILEPATH - "Path to exported glib-src-generator target from native build" + "Path to exported ical-glib-src-generator target from native build" ) - include(${IMPORT_GLIB_SRC_GENERATOR}) - set(glib-src-generator_EXE native-glib-src-generator) + include(${IMPORT_ICAL_GLIB_SRC_GENERATOR}) + set(ical-glib-src-generator_EXE native-ical-glib-src-generator) else() - set(glib-src-generator_EXE glib-src-generator) + set(ical-glib-src-generator_EXE ical-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 ${glib-src-generator_EXE} "${CMAKE_CURRENT_SOURCE_DIR}/tools" "${CMAKE_CURRENT_SOURCE_DIR}/api" - DEPENDS ${glib-src-generator_EXE} ${xml_files} + COMMAND ${ical-glib-src-generator_EXE} "${CMAKE_CURRENT_SOURCE_DIR}/tools" "${CMAKE_CURRENT_SOURCE_DIR}/api" + DEPENDS ${ical-glib-src-generator_EXE} ${xml_files} ) configure_file( |