-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
63 lines (57 loc) · 1.64 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
##### Library ######
add_library(
timeSystem STATIC
src/AbsoluteTime.cxx
src/axBary.c
src/bary.c
src/BaryTimeComputer.cxx
src/CalendarFormat.cxx
src/clock.c
src/ctatv.c
src/dpleph.c
src/Duration.cxx
src/ElapsedTime.cxx
src/EventTimeHandler.cxx
src/glastscorbit.c
src/GlastTimeHandler.cxx
src/IntFracUtility.cxx
src/MjdFormat.cxx
src/phaseHist.c
src/PulsarTestApp.cxx
src/scorbit.c
src/SourcePosition.cxx
src/TimeCorrectorApp.cxx
src/TimeInterval.cxx
src/TimeSystem.cxx
src/xCC.c
)
target_link_libraries(
timeSystem
PUBLIC cfitsio::cfitsio st_app st_stream st_facilities tip
)
target_include_directories(
timeSystem PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:>
)
###### Executables ######
add_executable(gtbary src/gtbary/gtbary.cxx)
target_link_libraries(gtbary PRIVATE timeSystem)
###### Tests ######
add_executable(test_timeSystem src/test/test_timeSystem.cxx)
target_link_libraries(test_timeSystem PRIVATE timeSystem)
###############################################################
# Installation
###############################################################
install(DIRECTORY timeSystem DESTINATION ${FERMI_INSTALL_INCLUDEDIR})
install(DIRECTORY pfiles/ DESTINATION ${FERMI_INSTALL_PFILESDIR})
install(DIRECTORY data/outref DESTINATION ${FERMI_INSTALL_DATADIR}/timeSystem)
install(DIRECTORY data/ DESTINATION ${FERMI_INSTALL_REFDATADIR}/timeSystem)
install(
TARGETS timeSystem gtbary test_timeSystem
EXPORT fermiTargets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)