generated from seqan/app-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #410 from eseiler/infra/cleanup
[INFRA] Cleanup
- Loading branch information
Showing
49 changed files
with
424 additions
and
642 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
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,30 @@ | ||
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin | ||
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# SYSTEM property is only implemented with CMake 3.25 | ||
macro (CPMGetSystemPackage package) | ||
CPMGetPackage (${package}) | ||
|
||
if (CMAKE_VERSION VERSION_LESS 3.25) | ||
set (target_name "${package}") | ||
if ("${package}" STREQUAL "seqan3") | ||
set (target_name "seqan3_seqan3") | ||
elseif ("${package}" STREQUAL "sharg") | ||
set (target_name "sharg_sharg") | ||
endif () | ||
|
||
if (${package}_ADDED) | ||
set (interface_include "$<TARGET_PROPERTY:${target_name},INTERFACE_INCLUDE_DIRECTORIES>") | ||
set (include "$<TARGET_PROPERTY:${target_name},INCLUDE_DIRECTORIES>") | ||
set_target_properties (${target_name} | ||
PROPERTIES INTERFACE_SYSTEM_INCLUDE_DIRECTORIES | ||
"$<$<BOOL:${interface_include}>:${interface_include}>;$<$<BOOL:${include}>:${include}>" | ||
) | ||
unset (interface_include) | ||
unset (include) | ||
endif () | ||
|
||
unset (target_name) | ||
endif () | ||
endmacro () |
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,96 @@ | ||
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin | ||
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
cmake_minimum_required (VERSION 3.21) | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Short-circuit if Raptor is already configured | ||
# ---------------------------------------------------------------------------- | ||
|
||
if (TARGET raptor::raptor) | ||
return () | ||
endif () | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Greeter | ||
# ---------------------------------------------------------------------------- | ||
|
||
message (STATUS "Finding Raptor (${RAPTOR_VERSION}) and checking requirements") | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Pretty printing and error handling | ||
# ---------------------------------------------------------------------------- | ||
|
||
macro (raptor_config_print text) | ||
message (STATUS " ${text}") | ||
endmacro () | ||
|
||
macro (raptor_config_error text) | ||
message (FATAL_ERROR " ${text}") | ||
endmacro () | ||
|
||
# ---------------------------------------------------------------------------- | ||
# ccache | ||
# ---------------------------------------------------------------------------- | ||
|
||
include (ccache) | ||
raptor_require_ccache () | ||
|
||
# ---------------------------------------------------------------------------- | ||
# CPM | ||
# ---------------------------------------------------------------------------- | ||
|
||
set (CPM_INDENT " CMake Package Manager CPM: ") | ||
include (CPM) | ||
CPMUsePackageLock (${Raptor_SOURCE_DIR}/cmake/package-lock.cmake) | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Find or add dependencies | ||
# ---------------------------------------------------------------------------- | ||
|
||
include (CPMGetSystemPackage) | ||
|
||
CPMGetSystemPackage (hibf) | ||
CPMGetSystemPackage (sharg) | ||
CPMGetSystemPackage (seqan3) | ||
CPMGetSystemPackage (chopper) | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Find Raptor include path | ||
# ---------------------------------------------------------------------------- | ||
|
||
find_path (RAPTOR_INCLUDE_DIR | ||
NAMES raptor/version.hpp | ||
HINTS "${Raptor_SOURCE_DIR}/include" | ||
) | ||
|
||
if (RAPTOR_INCLUDE_DIR) | ||
raptor_config_print ("Raptor include dir found: ${RAPTOR_INCLUDE_DIR}") | ||
else () | ||
raptor_config_error ("Raptor include directory could not be found (RAPTOR_INCLUDE_DIR: '${RAPTOR_INCLUDE_DIR}')") | ||
endif () | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Export targets | ||
# ---------------------------------------------------------------------------- | ||
|
||
add_library (raptor_raptor INTERFACE) | ||
target_link_libraries (raptor_raptor INTERFACE seqan::hibf sharg::sharg seqan3::seqan3) | ||
target_include_directories (raptor_raptor INTERFACE "${RAPTOR_INCLUDE_DIR}") | ||
|
||
# !Workaround: Get chopper include dir from chopper_shared target | ||
find_path (CHOPPER_INCLUDE_DIR | ||
NAMES chopper/configuration.hpp | ||
HINTS "${chopper_SOURCE_DIR}/include" | ||
) | ||
target_include_directories (raptor_raptor SYSTEM INTERFACE "${CHOPPER_INCLUDE_DIR}") | ||
|
||
# !Workaround: Get seqan3 test include dir from seqan3 target | ||
find_path (SEQAN3_TEST_INCLUDE_DIR | ||
NAMES seqan3/test/tmp_directory.hpp | ||
HINTS "${seqan3_SOURCE_DIR}/test/include" | ||
) | ||
target_include_directories (raptor_raptor SYSTEM INTERFACE "${SEQAN3_TEST_INCLUDE_DIR}") | ||
|
||
add_library (raptor::raptor ALIAS raptor_raptor) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
6bfcf2a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
raptor – ./
raptor-git-main-seqan.vercel.app
seqan-raptor.vercel.app
raptor-seqan.vercel.app