-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
72 additions
and
12 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 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# ----------------------------------------------------------------------------------------------------- | ||
# Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin | ||
# Copyright (c) 2016-2023, Knut Reinert & MPI für molekulare Genetik | ||
# This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License | ||
# shipped with this file. | ||
# ----------------------------------------------------------------------------------------------------- | ||
|
||
cmake_minimum_required (VERSION 3.12) | ||
|
||
include (${CMAKE_CURRENT_LIST_DIR}/version.cmake) | ||
include (GNUInstallDirs) | ||
|
||
if (yaml-cpp_FOUND) | ||
set (TDL_INSTALL_TARGETS "") | ||
else () | ||
set (TDL_INSTALL_TARGETS "yaml-cpp") | ||
endif () | ||
install (TARGETS tdl ${TDL_INSTALL_TARGETS} | ||
EXPORT tdl_targets | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
install (DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/../src/tdl" TYPE INCLUDE) | ||
install (EXPORT tdl_targets | ||
NAMESPACE tdl:: | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/tdl | ||
FILE tdl-config.cmake) | ||
|
||
include (CMakePackageConfigHelpers) | ||
set (version_file "${CMAKE_CURRENT_BINARY_DIR}/cmake/tdl-config-version.cmake") | ||
write_basic_package_version_file ( | ||
${version_file} | ||
VERSION "${TDL_VERSION}" | ||
COMPATIBILITY AnyNewerVersion) | ||
install (FILES ${version_file} DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/tdl) | ||
|
||
install (FILES "${CMAKE_CURRENT_LIST_DIR}/../LICENSE.md" "${CMAKE_CURRENT_LIST_DIR}/../README.md" TYPE DOC) |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# ----------------------------------------------------------------------------------------------------- | ||
# Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin | ||
# Copyright (c) 2016-2023, Knut Reinert & MPI für molekulare Genetik | ||
# This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License | ||
# shipped with this file. | ||
# ----------------------------------------------------------------------------------------------------- | ||
|
||
set (TDL_VERSION "1.0.0") |
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