-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathUseImageCapture.cmake.in
33 lines (29 loc) · 1.58 KB
/
UseImageCapture.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
#/*============================================================================
#
# IMAGECAPTURE: A software package for capturing images from input devices and rendering to vide outputs.
#
# 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 IMAGECAPTURE.
# It should not be included directly, but rather through the
# IMAGECAPTURE_USE_FILE setting obtained from ImageCaptureConfig.cmake.
if(IMAGECAPTURE_BUILD_SETTINGS_FILE AND NOT SKIP_IMAGECAPTURE_BUILD_SETTINGS_FILE)
include(${CMAKE_ROOT}/Modules/CMakeImportBuildSettings.cmake)
CMAKE_IMPORT_BUILD_SETTINGS(${IMAGECAPTURE_BUILD_SETTINGS_FILE})
endif()
# Add compiler flags needed to use IMAGECAPTURE.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${IMAGECAPTURE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${IMAGECAPTURE_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${IMAGECAPTURE_EXE_LINKER_FLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${IMAGECAPTURE_SHARED_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${IMAGECAPTURE_MODULE_LINKER_FLAGS}")
include_directories(BEFORE ${IMAGECAPTURE_INCLUDE_DIRS})
link_directories(${IMAGECAPTURE_LIBRARY_DIRS})