-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
62 lines (48 loc) · 2.1 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# (C) Copyright 2009-2021 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 ---
cmake_minimum_required (VERSION 2.8)
# create a list of required cisst libraries
set (REQUIRED_CISST_LIBRARIES cisstCommon
cisstCommonQt
cisstVector
cisstNumerical
cisstOSAbstraction
cisstMultiTask
cisstParameterTypes
cisstParameterTypesQt)
# find cisst and make sure the required libraries have been compiled
find_package (cisst 1.1.0 COMPONENTS ${REQUIRED_CISST_LIBRARIES})
if (cisst_FOUND_AS_REQUIRED)
# load cisst configuration
include (${CISST_USE_FILE})
# catkin/ROS paths
cisst_is_catkin_build (sawNDITrackerExamples_IS_CATKIN_BUILT)
if (sawNDITrackerExamples_IS_CATKIN_BUILT)
set (EXECUTABLE_OUTPUT_PATH "${CATKIN_DEVEL_PREFIX}/bin")
endif ()
# sawNDITracker has been compiled within cisst, we should find it automatically
find_package (sawNDITracker REQUIRED)
if (sawNDITracker_FOUND)
# sawNDITracker configuration
include_directories (${sawNDITracker_INCLUDE_DIR})
link_directories (${sawNDITracker_LIBRARY_DIR})
add_executable (sawNDITrackerQtExample mainQt.cpp)
set_property (TARGET sawNDITrackerQtExample PROPERTY FOLDER "sawNDITracker")
# link against non cisst libraries and saw components
target_link_libraries (sawNDITrackerQtExample
${sawNDITracker_LIBRARIES}
${sawNDITrackerQt_LIBRARIES}
${QT_LIBRARIES}
)
# link against cisst libraries (and dependencies)
cisst_target_link_libraries (sawNDITrackerQtExample ${REQUIRED_CISST_LIBRARIES})
endif (sawNDITracker_FOUND)
endif (cisst_FOUND_AS_REQUIRED)