-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathkwiver-config-build.cmake.in
63 lines (53 loc) · 2.19 KB
/
kwiver-config-build.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
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
63
# Handle our dependencies
set(fletch_DIR "@fletch_DIR@" CACHE PATH
"The directory containing a CMake configuration file for fletch."
)
set(Eigen3_DIR "@Eigen3_DIR@" CACHE PATH
"The directory containing a CMake configuration file for Eigen3."
)
include(CMakeFindDependencyMacro)
find_dependency(Eigen3 NO_MODULE)
# Export definitions for kwiver to be used from find_package
include("${CMAKE_CURRENT_LIST_DIR}/kwiver-config-targets.cmake")
set(KWIVER_BUILT_SHARED @BUILD_SHARED_LIBS@)
# KWIVER version
set(KWIVER_VERSION_MAJOR @KWIVER_VERSION_MAJOR@)
set(KWIVER_VERSION_MINOR @KWIVER_VERSION_MINOR@)
set(KWIVER_VERSION_PATCH @KWIVER_VERSION_PATCH@)
set(KWIVER_VERSION "@KWIVER_VERSION@")
# Extend module path for KWIVER utils
set(CMAKE_MODULE_PATH "@KWIVER_CMAKE_DIR@" "${CMAKE_MODULE_PATH}")
# KWIVER include directory
set(KWIVER_INCLUDE_DIRS
"@KWIVER_SOURCE_DIR@"
"@KWIVER_BINARY_DIR@"
"@KWIVER_BINARY_DIR@/vital/kwiversys"
"@KWIVER_SOURCE_DIR@/sprokit/src"
"@KWIVER_BINARY_DIR@/sprokit/src"
"@KWIVER_INCLUDE_DIRS@" )
set(KWIVER_TEST_INCLUDE_DIRS
"@KWIVER_SOURCE_DIR@/tests"
)
if (WIN32)
set(SETUP_BATCH_FILES "@SETUP_BATCH_FILES@")
add_definitions(-DBOOST_ALL_NO_LIB)
add_definitions(-DBOOST_PROGRAM_OPTIONS_DYN_LINK)
if(${MSVC_VERSION} GREATER_EQUAL 1915)
# You must acknowledge that you understand MSVC
# resolved a byte alignment issue in this compiler.
# We get this due to using Eigen objects and
# allocating those objects with make_shared
add_definitions(-D_ENABLE_EXTENDED_ALIGNED_STORAGE)
endif()
endif ()
set(KWIVER_DEFAULT_LIBRARY_DIR "@KWIVER_DEFAULT_LIBRARY_DIR@")
set(KWIVER_LIBRARY_DIR "@KWIVER_BINARY_DIR@/@KWIVER_DEFAULT_LIBRARY_DIR@")
set(KWIVER_LIBRARIES @kwiver_libs@)
set(KWIVER_ENABLE_PYTHON "@KWIVER_ENABLE_PYTHON@")
set(KWIVER_PYTHON_MAJOR_VERSION "@KWIVER_PYTHON_MAJOR_VERSION@")
set(KWIVER_PYTHON_VERSION "@KWIVER_PYTHON_VERSION@")
set(KWIVER_LIBRARY_DIRS "${KWIVER_LIBRARY_DIR}" "@KWIVER_LIBRARY_DIRS@")
set(KWIVER_MODULE_DIR "${KWIVER_LIBRARY_DIR}/modules")
set(KWIVER_DOCUMENTATION_DIR "@KWIVER_BINARY_DIR@/doc")
set(KWIVER_CMAKE_DIR "@KWIVER_CMAKE_DIR@")
set(KWIVER_DIR "@KWIVER_BINARY_DIR@")