Warning, /EICrecon/src/utilities/eicrecon/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.16)
0002
0003 project(eicrecon_project LANGUAGES CXX)
0004
0005 # Find dependencies
0006 find_package(JANA REQUIRED)
0007 find_package(Threads REQUIRED)
0008 find_package(fmt REQUIRED)
0009
0010 # Compile all sources into executable
0011 file(
0012 GLOB
0013 SOURCES
0014 *.cpp
0015 *.cc
0016 *.c
0017 *.hpp
0018 *.hh
0019 *.h)
0020
0021 set(INCLUDE_DIRS ${PROJECT_BINARY_DIR} ${EICRECON_SOURCE_DIR}/src
0022 ${PROJECT_SOURCE_DIR} ${JANA_INCLUDE_DIR} ${ROOT_INCLUDE_DIRS})
0023 set(LINK_LIBRARIES ${JANA_LIB} ${ROOT_LIBRARIES} ${CMAKE_DL_LIBS}
0024 Threads::Threads podio::podio podio::podioRootIO)
0025
0026 # Define executable
0027 add_executable(eicrecon ${SOURCES})
0028 target_include_directories(eicrecon PUBLIC ${INCLUDE_DIRS})
0029 target_link_libraries(eicrecon ${LINK_LIBRARIES})
0030 target_compile_definitions(
0031 eicrecon PRIVATE EICRECON_APP_VERSION=${CMAKE_PROJECT_VERSION})
0032
0033 # Install executable
0034 install(TARGETS eicrecon DESTINATION bin)