CMakeLists.txt 863 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
cmake_minimum_required(VERSION 3.0)
project(AculUtils)

# Find ROOT package
find_package(ROOT REQUIRED)

# Add include directories for ROOT
include_directories(${ROOT_INCLUDE_DIRS})
# Print the value of ROOT_INCLUDE_DIRS
message(STATUS "ROOT include directories: ${ROOT_INCLUDE_DIRS}")

12
# Add the subdirectories
13
add_subdirectory(TELoss)
14
add_subdirectory(AculCalib)
15
add_subdirectory(AculData)
16
add_subdirectory(Utilities)
17 18 19 20

# Set the output directory for the dictionary files
set(GEN_DICT_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
message(STATUS "CMAKE_CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}")
21 22 23 24 25 26 27
message(STATUS "CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}")
message(STATUS "GEN_DICT_OUTPUT_DIR: ${GEN_DICT_OUTPUT_DIR}")
message(STATUS "CMAKE_COMMAND: ${CMAKE_COMMAND}")

# add_custom_target(clean_all
#     COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/*
# )