mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 13:11:36 +00:00
- CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR point to the top-level project and break add_subdirectory() and FetchContent - Find the helper modules relative to the CMakeLists.txt that includes them - Replace @CMAKE_BINARY_DIR@ in the example test scripts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
26 lines
1.1 KiB
CMake
26 lines
1.1 KiB
CMake
################################################################################
|
|
# Copyright (C) 2021 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH #
|
|
# #
|
|
# This software is distributed under the terms of the #
|
|
# GNU Lesser General Public Licence (LGPL) version 3, #
|
|
# copied verbatim in the file "LICENSE" #
|
|
################################################################################
|
|
|
|
set(target fairmq-tidy)
|
|
add_executable(${target}
|
|
ModernizeNonNamespacedTypes.h
|
|
Tool.h
|
|
runTool.cpp
|
|
)
|
|
add_executable("${PROJECT_NAME}::${target}" ALIAS ${target})
|
|
target_compile_features(${target} PRIVATE cxx_std_17)
|
|
target_link_libraries(${target} PRIVATE clang-cpp LLVM)
|
|
target_include_directories(${target} PRIVATE
|
|
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
|
|
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}>
|
|
)
|
|
install(TARGETS ${target}
|
|
EXPORT ${PROJECT_EXPORT_SET}
|
|
RUNTIME DESTINATION ${PROJECT_INSTALL_BINDIR}
|
|
)
|