CMakeLists.txt 832 Bytes
Newer Older
1

2

3
SET(Slicer_PYTHON_SCRIPTS
4
5
6
  slicer/__init__
  slicer/logic
  slicer/slicerqt
7
8
9
10
11
12
  mrml
  mrmlLogic
  teem
  freesurfer
  remoteio
  vtk/__init__
13
14
15
  )

SET(Slicer_PYTHON_RESOURCES
16
  )
17
  
18
IF(Slicer_USE_PYTHONQT_WITH_TCL)
19
  LIST(APPEND Slicer_PYTHON_SCRIPTS
20
    slicer/slicerqt-with-tcl
21
22
23
24
25
26
27
    tpycl/__init__
    tpycl/tpycl
    )
  LIST(APPEND Slicer_PYTHON_RESOURCES
    tpycl/tpycl.tcl
    )
ENDIF()
28

29
Slicer_compile_python_scripts(
30
31
32
  TARGET_NAME slicer
  SCRIPTS "${Slicer_PYTHON_SCRIPTS}"
  RESOURCES "${Slicer_PYTHON_RESOURCES}"
33
  DESTINATION_DIR ${Slicer_BINARY_DIR}/bin/Python
34
  INSTALL_DIR ${Slicer_INSTALL_BIN_DIR}
35
36
  )

37
38
39
#-----------------------------------------------------------------------------
# Testing
#
jcfr's avatar
jcfr committed
40
if(BUILD_TESTING)
41
  IF(Slicer_USE_PYTHONQT_WITH_TCL)
42
43
    add_subdirectory(tpycl/Testing)
  ENDIF()
jcfr's avatar
jcfr committed
44
endif(BUILD_TESTING)