File size: 1,106 Bytes
68ce2fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#
#
# CMakeLists for cisstMultiTask Python wrapping
#
# (C) Copyright 2003-2025 Johns Hopkins University (JHU), All Rights Reserved.
#
# --- begin cisst license - do not edit ---
#
# This software is provided "as is" under an open source license, with
# no warranty.  The complete license can be found in license.txt and
# http://www.cisst.org/cisst/license.txt.
#
# --- end cisst license ---

project (cisstMultiTaskPython)

if (WIN32)
  # For conditional compilation on Windows
  set_property (SOURCE "../cisstMultiTask.i" PROPERTY COMPILE_DEFINITIONS SWIG_WINDOWS)
endif ()

# create wrappers using swig
cisst_add_swig_module (MODULE cisstMultiTask
                       INTERFACE_DIRECTORY ..
                       FOLDER cisstMultiTask
                       HEADER_FILES ../mtsPython.h
                       MODULE_LINK_LIBRARIES cisstMultiTask cisstOSAbstraction cisstVector cisstCommon
                       INSTALL_FILES 1)

if (WIN32 AND CMAKE_CL_64)
    message("cisstMultiTaskPython: added /bigobj flag")
    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
endif (WIN32 AND CMAKE_CL_64)