-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.cmake.in
33 lines (31 loc) · 1.23 KB
/
package.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
# SPDX-FileCopyrightText: The Bio++ Development Group
#
# SPDX-License-Identifier: CECILL-2.1
@PACKAGE_INIT@
if (NOT @PROJECT_NAME@_FOUND)
# No deps
# Add targets
include ("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
# Append targets to convenient lists
set (BPP_LIBS_STATIC "${BPP_LIBS_STATIC}" @PROJECT_NAME@-static)
set (BPP_LIBS_SHARED "${BPP_LIBS_SHARED}" @PROJECT_NAME@-shared)
# Print some path info for targets
if (BUILD_STATIC)
get_property (static-location TARGET @PROJECT_NAME@-static PROPERTY LOCATION)
endif (BUILD_STATIC)
get_property (shared-location TARGET @PROJECT_NAME@-shared PROPERTY LOCATION)
get_property (header-location TARGET @PROJECT_NAME@-shared PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
message (STATUS "@PROJECT_NAME@ @PROJECT_VERSION@ found:")
if (BUILD_STATIC)
message (STATUS " static lib: ${static-location}")
else (BUILD_STATIC)
message (STATUS " static lib: not built/installed")
endif (BUILD_STATIC)
message (STATUS " shared lib: ${shared-location}")
message (STATUS " includes: ${header-location}")
if (BUILD_STATIC)
unset (static-location)
endif (BUILD_STATIC)
unset (shared-location)
unset (header-location)
endif (NOT @PROJECT_NAME@_FOUND)