forked from eudaq/eudaq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (27 loc) · 994 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
##-- OPT: Compile AIDA strip?
option(USER_AIDASTRIP_BUILD "build AIDA strip" OFF)
if(NOT USER_AIDASTRIP_BUILD)
message(STATUS "user/aidastrip is NOT to be built (USER_AIDASTRIP_BUILD=OFF)")
return()
endif()
message(STATUS "user/aidastrip is to be built (USER_AIDASTRIP_BUILD=ON)")
##-- Global Preparation:
#-- EUDAQ_MODULE needed for compilation at lower level CMakeLists
get_filename_component(EUDAQ_USERNAME ${CMAKE_CURRENT_LIST_DIR} NAME)
set(EUDAQ_MODULE module_${EUDAQ_USERNAME})
##-- Main Producer + DC:
add_subdirectory(module)
##-- ROOT analyzer/converter needs ROOT:
find_package(ROOT)
cmake_dependent_option(USER_AIDASTRIP_EXE "build aux. AIDASTRIP executables." ON
"ROOT_FOUND" OFF)
if(USER_AIDASTRIP_EXE)
add_subdirectory(exe)
endif()
##-- GUI needs QT5:
find_package(Qt5Widgets QUIET)
cmake_dependent_option(USER_AIDASTRIP_GUI "Compile AIDA Strip GUI executables (requires QT5)" ON
"Qt5Widgets_FOUND" OFF)
if(USER_AIDASTRIP_GUI)
add_subdirectory(gui)
endif()