-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
60 lines (54 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
##### Library ######
add_library(
pulsarDb STATIC
src/BtModelEph.cxx
src/Ell1ModelEph.cxx
src/EphChooser.cxx
src/EphComputer.cxx
src/EphComputerApp.cxx
src/EphStatus.cxx
src/FrequencyEph.cxx
src/HighPrecisionEph.cxx
src/MssModelEph.cxx
src/OrbitalEph.cxx
src/PdotCanceler.cxx
src/PeriodEph.cxx
src/PulsarDb.cxx
src/PulsarDbApp.cxx
src/PulsarEph.cxx
src/PulsarToolApp.cxx
src/SimpleDdEph.cxx
)
target_link_libraries(
pulsarDb
PUBLIC st_app st_stream tip timeSystem
PRIVATE st_facilities
)
target_include_directories(
pulsarDb PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:>
)
###### Executables ######
add_executable(gtephem src/gtephem/gtephem.cxx)
add_executable(gtpulsardb src/gtpulsardb/gtpulsardb.cxx)
target_link_libraries(gtephem PRIVATE pulsarDb)
target_link_libraries(gtpulsardb PRIVATE pulsarDb)
###### Tests ######
add_executable(test_pulsarDb src/test/test_pulsarDb.cxx)
target_link_libraries(test_pulsarDb PRIVATE pulsarDb)
###############################################################
# Installation
###############################################################
install(DIRECTORY pulsarDb DESTINATION ${FERMI_INSTALL_INCLUDEDIR})
install(DIRECTORY pfiles/ DESTINATION ${FERMI_INSTALL_PFILESDIR})
install(DIRECTORY data/outref DESTINATION ${FERMI_INSTALL_DATADIR}/pulsarDb)
install(DIRECTORY data/ DESTINATION ${FERMI_INSTALL_REFDATADIR}/pulsarDb)
install(
TARGETS pulsarDb gtephem gtpulsardb test_pulsarDb
EXPORT fermiTargets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)