jpp_add_library(Jeep SOURCES ${CMAKE_CURRENT_BINARY_DIR}/JGITTags.cc PUBLIC_LINK_LIBRARIES km3net::JLang km3net::JSupport PUBLIC_HEADER JArgs.hh JColor.hh JComment.hh JComparisonToolkit.hh JGITTags.hh JMessage.hh JParser.hh JPrint.hh JProperties.hh JScale.hh JStatus.hh JStreamToolkit.hh JTimekeeper.hh JTimer.hh JeepToolkit.hh COMPILE_DEFINITIONS NAMESPACE=KM3NET TARGETVARNAME targetName ) find_package(Git) set(GIT_TAGS "") if(Git_FOUND AND KM3NET_JPP_IS_GIT_REPO) execute_process( COMMAND ${GIT_EXECUTABLE} fetch --all COMMAND ${GIT_EXECUTABLE} tag --list --format "%(refname:short) %(creatordate:short)" WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} RESULT_VARIABLE result OUTPUT_VARIABLE GITTAGS OUTPUT_STRIP_TRAILING_WHITESPACE) if(NOT result) set(GIT_TAGS ${GITTAGS}) endif() string(REGEX REPLACE "\n" " " GIT_TAGS "${GIT_TAGS}") endif() configure_file(JGITTags.cc.in JGITTags.cc @ONLY) add_library(km3net-jpp-gittags STATIC) target_sources(km3net-jpp-gittags PRIVATE JGITTags.cc) target_include_directories(km3net-jpp-gittags PRIVATE ${PROJECT_SOURCE_DIR}/software) add_library(km3net::gittags ALIAS km3net-jpp-gittags) jpp_add_executable(getGITTags SOURCES getGITTags.cc LINK_LIBRARIES km3net::Jeep km3net::gittags) jpp_add_executable(JShellParser SOURCES JShellParser.cc LINK_LIBRARIES ROOT::Core km3net::JLang km3net::Jeep) jpp_add_executable(JEditProperties SOURCES JEditProperties.cc LINK_LIBRARIES km3net::JLang km3net::JSupport km3net::Jeep) jpp_add_executable(JPrintProperties SOURCES JPrintProperties.cc LINK_LIBRARIES km3net::JLang km3net::Jeep)