-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
39 lines (28 loc) · 1.78 KB
/
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
36
37
38
39
cmake_minimum_required(VERSION 3.7)
project(pixy_roimux)
set(CMAKE_CXX_STANDARD 11)
list(APPEND CMAKE_MODULE_PATH $ENV{ROOTSYS}/etc/cmake)
find_package(ROOT COMPONENTS Geom REQUIRED)
include_directories(${ROOT_INCLUDE_DIRS})
add_definitions(${ROOT_CXX_FLAGS})
set(Eigen3_DIR $ENV{Eigen3_CMAKEDIR})
find_package(Eigen3 REQUIRED CONFIG)
include_directories(${EIGEN3_INCLUDE_DIRS})
set(RapidJSON_DIR $ENV{RapidJSON_CMAKEDIR})
find_package(RapidJSON REQUIRED CONFIG)
include_directories(${RapidJSON_INCLUDE_DIRS})
find_library(GENFIT_LIBRARIES NAMES libgenfit2.so PATHS $ENV{GENFIT}/lib)
include_directories($ENV{GENFIT}/include)
set(SOURCE_FILES main.cpp ChargeData.cpp ChargeData.h RunParams.cpp RunParams.h Event.cpp Event.h ChargeHits.cpp ChargeHits.h NoiseFilter.cpp NoiseFilter.h PrincipalComponentsCluster.cpp PrincipalComponentsCluster.h KalmanFit.cpp KalmanFit.h)
add_executable(pixy_roimux ${SOURCE_FILES})
set(DEBUG_SOURCE_FILES debug.cpp ChargeData.cpp ChargeData.h RunParams.cpp RunParams.h Event.cpp Event.h ChargeHits.cpp ChargeHits.h NoiseFilter.cpp NoiseFilter.h PrincipalComponentsCluster.cpp PrincipalComponentsCluster.h KalmanFit.cpp KalmanFit.h)
add_executable(pixy_debug ${DEBUG_SOURCE_FILES})
set(NOISE_SOURCE_FILES noise.cpp ChargeData.cpp ChargeData.h RunParams.cpp RunParams.h NoiseFilter.cpp NoiseFilter.h)
add_executable(pixy_noise ${NOISE_SOURCE_FILES})
set(DISPLAY_SOURCE_FILES genfitDisplay.cpp)
add_executable(pixy_display ${DISPLAY_SOURCE_FILES})
target_link_libraries(pixy_roimux ${ROOT_LIBRARIES} ${GENFIT_LIBRARIES})
target_link_libraries(pixy_debug ${ROOT_LIBRARIES} ${GENFIT_LIBRARIES})
target_link_libraries(pixy_noise ${ROOT_LIBRARIES} ${GENFIT_LIBRARIES})
target_link_libraries(pixy_display ${ROOT_LIBRARIES} ${GENFIT_LIBRARIES})
#install(TARGETS pixy_roimux DESTINATION bin)