Warning, /geant4/examples/advanced/dsbandrepair/analysis/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 #----------------------------------------------------------------------------
0002 # Setup the project
0003 #
0004 cmake_minimum_required(VERSION 3.16...3.27)
0005 project(runAna)
0006 set(CMAKE_CXX_STANDARD 17)
0007
0008 # Find ROOT package
0009 find_package(ROOT REQUIRED)
0010 #----------------------------------------------------------------------------
0011 # Setup ROOT include directories and compile definitions
0012 # Setup include directory for this project
0013 #
0014 include_directories(${PROJECT_SOURCE_DIR}/include
0015 ${ROOT_INCLUDE_DIRS}
0016 ${PROJECT_SOURCE_DIR}/dnadamage/include
0017 ${PROJECT_SOURCE_DIR}/repairmodels/include
0018 )
0019
0020 #----------------------------------------------------------------------------
0021 # Locate sources and headers for this project
0022 # NB: headers are included so they will show up in IDEs
0023 #
0024 file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cc
0025 ${PROJECT_SOURCE_DIR}/dnadamage/src/*.cc
0026 ${PROJECT_SOURCE_DIR}/repairmodels/src/*.cc
0027 )
0028
0029 file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.hh
0030 ${PROJECT_SOURCE_DIR}/dnadamage/include/*.hh
0031 ${PROJECT_SOURCE_DIR}/repairs/include/*.hh
0032 )
0033
0034 add_executable(${PROJECT_NAME} main.cc ${sources} ${headers})
0035 target_link_libraries(${PROJECT_NAME} ${ROOT_LIBRARIES} )