-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlibctr-config.cmake.in
More file actions
49 lines (40 loc) · 1.94 KB
/
libctr-config.cmake.in
File metadata and controls
49 lines (40 loc) · 1.94 KB
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
################################################################################
# libctr - Library for Nintendo 3DS homebrew.
#
# Copyright (C) 2015, OpenCTR Contributors.
#
# This file is part of libctr.
#
# libctr is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3 as published by
# the Free Software Foundation.
#
# libctr is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License
# along with libctr. If not, see <http://www.gnu.org/licenses/>.
################################################################################
set(LIBCTR_VERSION @PROJECT_VERSION@)
@PACKAGE_INIT@
get_filename_component(CURDIR "${CMAKE_CURRENT_LIST_FILE}" DIRECTORY)
include(${CURDIR}/libctr-targets.cmake)
if(TARGET CTR::CTR)
set_property(TARGET CTR::CTR PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES "C")
set_property(TARGET CTR::CTR PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C")
set_property(TARGET CTR::CTR PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C")
set_property(TARGET CTR::CTR PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES_RELWITHDEBINFO "C")
set_property(TARGET CTR::CTR PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES_MINSIZEREL "C")
get_property(LIBCTR_LIBRARY TARGET CTR::CTR PROPERTY LOCATION)
get_property(LIBCTR_INCLUDE_DIR TARGET CTR::CTR PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
set_and_check(LIBCTR_LIBRARY "${LIBCTR_LIBRARY}")
set_and_check(LIBCTR_INCLUDE_DIR "${LIBCTR_INCLUDE_DIR}")
endif()
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
find_package_handle_standard_args(libctr
FOUND_VAR LIBCTR_FOUND
REQUIRED_VARS LIBCTR_LIBRARY LIBCTR_INCLUDE_DIR
VERSION_VAR ${LIBCTR_VERSION}
)