forked from owent/libcopp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LibcoppConfig.cmake.in
72 lines (59 loc) · 2.32 KB
/
LibcoppConfig.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
64
65
66
67
68
69
70
71
72
#.rst:
# Libcoppconfig.cmake
# --------
#
# Find the native libcopp includes and library.
#
#
# Result Variables
# ^^^^^^^^^^^^^^^^
#
# This module defines the following variables:
#
# ::
#
# Libcopp_INCLUDE_DIRS - where to find libcopp/utils/config/build_feature.h , etc.
# Libcopp_LIBRARY_DIRS - where to find (lib)copp/cotask.(a/so/lib/dll/dylib), etc.
# Libcopp_LIBRARIES - List of libraries when using libcopp.
# Libcotask_LIBRARIES - List of libraries when using libcotask.
# Libcopp_FOUND - True if libcopp found.
# Libcopp_VERSION - Full version of libcopp
#
# ::
#
#=============================================================================
# Copyright 2018 OWenT.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
set(Libcopp_VERSION "@LIBCOPP_VERSION@")
@PACKAGE_INIT@
################################################################################
# libcopp source dir
set(Libcopp_SOURCE_DIR "@PROJECT_SOURCE_DIR@")
set_and_check(Libcopp_INCLUDE_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(Libcopp_LIBRARY_DIRS "@PACKAGE_LIB_INSTALL_DIR@")
# Normal search.
set(Libcopp_NAMES copp libcopp)
set(Libcotask_NAMES cotask libcotask)
# Try each search configuration.
find_library(Libcopp_LIBRARIES NAMES ${Libcopp_NAMES} PATHS ${Libcopp_LIBRARY_DIRS} NO_DEFAULT_PATH)
find_library(Libcotask_LIBRARIES NAMES ${Libcotask_NAMES} PATHS ${Libcopp_LIBRARY_DIRS} NO_DEFAULT_PATH)
mark_as_advanced(Libcopp_INCLUDE_DIRS Libcopp_LIBRARY_DIRS Libcopp_LIBRARIES Libcotask_LIBRARIES)
# handle the QUIETLY and REQUIRED arguments and set LIBCOPP_FOUND to TRUE if
# all listed variables are TRUE
include("FindPackageHandleStandardArgs")
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Libcopp
FOUND_VAR Libcopp_FOUND
REQUIRED_VARS Libcopp_INCLUDE_DIRS Libcopp_LIBRARIES)
if (Libcopp_FOUND)
set(LIBCOPP_FOUND ${Libcopp_FOUND})
endif()
# check_required_components(Libcopp)