-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (42 loc) · 1.19 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
add_library(
st_graph STATIC
src/Axis.cxx
src/EmbedPython.cpp
src/Engine.cxx
src/IPlot.cxx
src/MPLEngine.cxx
src/MPLFrame.cxx
src/MPLPlot.cxx
src/MPLPlotFrame.cxx
src/MPLTabFolder.cxx
src/StGui.cxx
)
target_include_directories(
st_graph PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:>
)
target_link_libraries(
st_graph
PRIVATE embed_python Python3::Python
PUBLIC hoops st_stream
)
if(NOT APPLE)
target_compile_definitions(st_graph PRIVATE TRAP_FPE)
endif()
add_executable(test_st_graph src/test/test_st_graph.cxx)
target_link_libraries(test_st_graph PRIVATE st_graph hoops)
###############################################################
# Installation
###############################################################
install(DIRECTORY st_graph DESTINATION ${FERMI_INSTALL_INCLUDEDIR})
install(DIRECTORY pfiles/ DESTINATION ${FERMI_INSTALL_PFILESDIR})
install(FILES src/STTopLevel.py src/Lego.py DESTINATION ${FERMI_INSTALL_PYTHON})
install(
TARGETS st_graph test_st_graph
EXPORT fermiTargets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)