-
Notifications
You must be signed in to change notification settings - Fork 60
/
CMakeLists.txt
30 lines (26 loc) · 1.01 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
SET(podio_PYTHON_INSTALLDIR python)
SET(podio_PYTHON_INSTALLDIR ${podio_PYTHON_INSTALLDIR} PARENT_SCOPE)
SET(podio_PYTHON_DIR ${CMAKE_CURRENT_LIST_DIR} PARENT_SCOPE)
set(to_install
podio_class_generator.py
podio_schema_evolution.py
figure.txt
EventStore.py)
install(FILES ${to_install} DESTINATION ${podio_PYTHON_INSTALLDIR})
if(ENABLE_SIO)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/podio
DESTINATION ${podio_PYTHON_INSTALLDIR}
REGEX test_.*\\.py$ EXCLUDE # Do not install test files
PATTERN __pycache__ EXCLUDE # Or pythons caches
)
else()
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/podio
DESTINATION ${podio_PYTHON_INSTALLDIR}
REGEX test_.*\\.py$ EXCLUDE # Do not install test files
PATTERN __pycache__ EXCLUDE # Or pythons caches
REGEX .*sio.*\\.py$ EXCLUDE # All things sio related
)
endif()
#--- install templates ---------------------------------------------------------
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/templates
DESTINATION ${podio_PYTHON_INSTALLDIR})