-
Notifications
You must be signed in to change notification settings - Fork 3
/
UseMonteverdi.cmake.in
35 lines (30 loc) · 1.32 KB
/
UseMonteverdi.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
34
35
#
# This file sets up include directories, link directories, and
# compiler settings for a project to use Monteverdi. It should not be
# included directly, but rather through the Monteverdi_USE_FILE setting
# obtained from MonteverdiConfig.cmake.
#
# Add compiler flags needed to use Monteverdi.
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${Monteverdi_REQUIRED_C_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Monteverdi_REQUIRED_CXX_FLAGS}")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${Monteverdi_REQUIRED_LINK_FLAGS}")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${Monteverdi_REQUIRED_LINK_FLAGS}")
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${Monteverdi_REQUIRED_LINK_FLAGS}")
# Add include directories needed to use Monteverdi.
INCLUDE_DIRECTORIES(${Monteverdi_INCLUDE_DIRS})
# Add link directories needed to use Monteverdi.
LINK_DIRECTORIES(${Monteverdi_LIBRARY_DIRS})
# Where to find OTB
INCLUDE(${OTB_DIR}/OTBConfig.cmake)
# Where to find FLTK
if(OTB_USE_EXTERNAL_FLTK)
FIND_PACKAGE(FLTK)
LINK_DIRECTORIES(${FLTK_LIBRARY_DIRS})
else(OTB_USE_EXTERNAL_FLTK)
FIND_PROGRAM(FLTK_FLUID_EXECUTABLE fluid PATHS
${OTB_BINARY_DIRS}
${OTB_BINARY_DIRS}/Release
${OTB_BINARY_DIRS}/RelWithDebInfo
${OTB_BINARY_DIRS}/Debug
NO_SYSTEM_PATH)
endif(OTB_USE_EXTERNAL_FLTK)