-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
29 lines (23 loc) · 931 Bytes
/
CMakeLists.txt
File metadata and controls
29 lines (23 loc) · 931 Bytes
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
project (rh-scripts)
cmake_minimum_required (VERSION 2.8)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set (CMAKE_INSTALL_PREFIX "/opt/caai" CACHE PATH "default install path" FORCE )
endif()
# Add python-lib
ADD_SUBDIRECTORY( pythontoolkit )
# Install programs into bin
INSTALL(PROGRAMS conversion/dicom_to_minc.py
conversion/rtx2mnc.py
conversion/mnc2dcm.py
conversion/rtdose2mnc.py
conversion/hu2lac.py
conversion/lac2hu.py
PERMISSIONS
OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
DESTINATION
bin )
# Move config file, if it exists, to share folder
INSTALL(FILES dicom/config-default.ini DESTINATION share)
# Install PATH and PYTHONPATH configuration file
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/toolkit-config.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/toolkit-config.sh @ONLY)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/toolkit-config.sh DESTINATION .)