-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Fastor to `algebra-plugins`
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 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,30 @@ | ||
# Algebra plugins library, part of the ACTS project (R&D line) | ||
# | ||
# (c) 2022 CERN for the benefit of the ACTS project | ||
# | ||
# Mozilla Public License Version 2.0 | ||
|
||
# CMake include(s). | ||
cmake_minimum_required( VERSION 3.11 ) | ||
include( FetchContent ) | ||
|
||
# Tell the user what's happening. | ||
message( STATUS "Building Fastor as part of the Algebra Plugins project" ) | ||
|
||
# Declare where to get Fastor from. | ||
# We need to use this alternative syntax for FetchContent_Declare because the | ||
# latest release for Fastor does not have a CMakeLists.txt file. | ||
set( ALGEBRA_PLUGINS_FASTOR_SOURCE | ||
"fastor;GIT_REPOSITORY;https://github.com/romeric/Fastor.git;GIT_TAG;6d7216f304d60d92b9b042566d4d6e94c65086a3" | ||
CACHE STRING "Source for Fastor, when built as part of this project" ) | ||
mark_as_advanced( ALGEBRA_PLUGINS_FASTOR_SOURCE ) | ||
FetchContent_Declare( fastor ${ALGEBRA_PLUGINS_FASTOR_SOURCE} ) | ||
|
||
# Options used in the build of Fastor. | ||
set(BUILD_TESTING OFF CACHE BOOL "Don't build the Fastor tests") | ||
add_compile_definitions(FASTOR_ENABLE_RUNTIME_CHECKS=0) | ||
|
||
# Get it into the current directory. | ||
FetchContent_Populate( fastor ) | ||
add_subdirectory( "${fastor_SOURCE_DIR}" "${fastor_BINARY_DIR}" | ||
EXCLUDE_FROM_ALL ) |
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,4 @@ | ||
# Build Recipe for Fastor | ||
|
||
This directory holds a simple build recipe for the | ||
[Fastor](https://github.com/romeric/Fastor) project. |