-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUsesksurgeryopencvcpp.cmake.in
33 lines (29 loc) · 1.63 KB
/
Usesksurgeryopencvcpp.cmake.in
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
#/*============================================================================
#
# SKSURGERYOPENCVCPP: Image-guided surgery functions, in C++, using OpenCV.
#
# Copyright (c) University College London (UCL). All rights reserved.
#
# This software is distributed WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE.
#
# See LICENSE.txt in the top level directory for details.
#
#============================================================================*/
# This file sets up include directories, link directories, and
# compiler settings for a project to compile against SKSURGERYOPENCVCPP.
# It should not be included directly, but rather through the
# SKSURGERYOPENCVCPP_USE_FILE setting obtained from sksurgeryopencvcppConfig.cmake.
if(SKSURGERYOPENCVCPP_BUILD_SETTINGS_FILE AND NOT SKIP_SKSURGERYOPENCVCPP_BUILD_SETTINGS_FILE)
include(${CMAKE_ROOT}/Modules/CMakeImportBuildSettings.cmake)
CMAKE_IMPORT_BUILD_SETTINGS(${SKSURGERYOPENCVCPP_BUILD_SETTINGS_FILE})
endif()
# Add compiler flags needed to use SKSURGERYOPENCVCPP.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SKSURGERYOPENCVCPP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SKSURGERYOPENCVCPP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${SKSURGERYOPENCVCPP_EXE_LINKER_FLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${SKSURGERYOPENCVCPP_SHARED_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${SKSURGERYOPENCVCPP_MODULE_LINKER_FLAGS}")
include_directories(BEFORE ${SKSURGERYOPENCVCPP_INCLUDE_DIRS})
link_directories(${SKSURGERYOPENCVCPP_LIBRARY_DIRS})