-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install libunicode install targets the same way we now do with boxed-cpp
Signed-off-by: Christian Parpart <[email protected]>
- Loading branch information
1 parent
204a3ae
commit bc1c276
Showing
3 changed files
with
32 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
# Compute installation prefix relative to this file. | ||
get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
get_filename_component(_prefix "${_dir}/../../.." ABSOLUTE) | ||
@PACKAGE_INIT@ | ||
|
||
# Import the targets. | ||
include("${_dir}/@[email protected]") | ||
# prevent repeatedly including the targets | ||
if(NOT TARGET unicode::core) | ||
include(${CMAKE_CURRENT_LIST_DIR}/libunicode-targets.cmake) | ||
endif() | ||
|
||
# Report other information. | ||
set(libunicode_INCLUDE_DIRS "${_prefix}/include") | ||
set(libunicode_FOUND TRUE) | ||
message(STATUS "Found @PROJECT_NAME@, version: ${@PROJECT_NAME@_VERSION}") |