-
Notifications
You must be signed in to change notification settings - Fork 2
/
FindCubbyFlow.cmake
90 lines (69 loc) · 2.35 KB
/
FindCubbyFlow.cmake
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
#[=======================================================================[.rst:
FindCubbyFlow
-------
Finds the CubbyFlow library.
Imported Targets
^^^^^^^^^^^^^^^^
This module provides the following imported targets, if found:
``CubbyFlow::CubbyFlow``
The CubbyFlow library
Result Variables
^^^^^^^^^^^^^^^^
This will define the following variables:
``CubbyFlow_FOUND``
True if the system has the CubbyFlow library.
``CubbyFlow_VERSION``
The version of the CubbyFlow library which was found.
``CubbyFlow_INCLUDE_DIRS``
Include directories needed to use CubbyFlow.
``CubbyFlow_LIBRARIES``
Libraries needed to link to CubbyFlow.
Cache Variables
^^^^^^^^^^^^^^^
The following cache variables may also be set:
``CubbyFlow_INCLUDE_DIR``
The directory containing All core header files.
``CubbyFlow_LIBRARY``
The path to the CubbyFlow library.
#]=======================================================================]
set(CUBBYFLOW_ROOT "${CUBBYFLOW_INSTALL_DIR}" CACHE PATH "CubbyFlow installed directory")
set(CubbyFlow_INCLUDE_DIR "${CUBBYFLOW_ROOT}/include" CACHE PATH "CubbyFlow include directory")
message(STATUS "CUBBYFLOW_ROOT : ${CUBBYFLOW_ROOT}")
message(STATUS "CubbyFlow_INCLUDE_DIR : ${CubbyFlow_INCLUDE_DIR}")
find_library(CubbyFlow_LIBRARY_DEBUG
NAMES CubbyFlow
PATHS ${CUBBYFLOW_ROOT}/lib
)
find_library(CubbyFlow_LIBRARY_RELEASE
NAMES CubbyFlow
PATHS ${CUBBYFLOW_ROOT}/lib
)
message(STATUS "CubbyFlow_LIBRARY_DEBUG : ${CubbyFlow_LIBRARY_DEBUG}")
message(STATUS "CubbyFlow_LIBRARY_RELEASE : ${CubbyFlow_LIBRARY_RELEASE}")
include(SelectLibraryConfigurations)
select_library_configurations(CubbyFlow)
set(CubbyFlow_VERSION 1.0.0)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CubbyFlow
FOUND_VAR CubbyFlow_FOUND
REQUIRED_VARS
CubbyFlow_LIBRARY_DEBUG
CubbyFlow_LIBRARY_RELEASE
CubbyFlow_INCLUDE_DIR
VERSION_VAR CubbyFlow_VERSION
)
if(CubbyFlow_FOUND)
if (CubbyFlow_LIBRARY_RELEASE)
set(CubbyFlow_LIBRARIES ${CubbyFlow_LIBRARY_RELEASE})
endif()
if (CubbyFlow_LIBRARY_DEBUG)
set(CubbyFlow_LIBRARIES ${CubbyFlow_LIBRARY_DEBUG})
endif()
set(CubbyFlow_INCLUDE_DIRS ${CubbyFlow_INCLUDE_DIR})
endif()
mark_as_advanced(
CubbyFlow_INCLUDE_DIR
CubbyFlow_LIBRARY
)