-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
35 lines (23 loc) · 1.21 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
# The name of our project is "HELLO". CMakeLists files in this project can
# refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and
# to the root binary directory of the project as ${HELLO_BINARY_DIR}.
cmake_minimum_required (VERSION 2.6)
project (mictest)
# cmake -GXcode -DCMAKE_MODULE_PATH=`pwd`
# Recurse into the "Hello" and "Demo" subdirectories. This does not actually
# cause another cmake executable to run. The same process will walk through
# the project's entire directory structure.
#add_subdirectory (Hello)
#add_subdirectory (Demo)
#add_subdirectory (Math)
# needs FindROOT.cmake, which comes with ROOT and has been copied into the project
find_package(ROOT REQUIRED)
include_directories(${ROOTSYS}/include)
file(GLOB sources ${PROJECT_SOURCE_DIR}/*.cc)
file(GLOB headers ${PROJECT_SOURCE_DIR}/.hh)
set(SRCS main main.cc Track.cc Hit.cc Matrix.cc KalmanUtils.cc Propagation.cc Simulation.cc buildtest.cc fittest.cc )
set(HEADERS Track.h Hit.h Matrix.h KalmanUtils.h Propagation.h Simulation.h)
include_directories( ${mictest_SOURCE_DIR})
# this is the main executable for testing the tracking
add_executable (main ${SRCS} ${HEADERS} )
target_link_libraries(main ${ROOT_LIBRARIES})