-
Notifications
You must be signed in to change notification settings - Fork 1
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 #82 from njoy/update/cmake
Update/cmake
- Loading branch information
Showing
7 changed files
with
155 additions
and
148 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,42 @@ | ||
cmake_minimum_required( VERSION 3.27 ) | ||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/.cmake) | ||
include( FetchContent ) | ||
|
||
FetchContent_Declare( tools | ||
GIT_REPOSITORY ../../njoy/tools | ||
GIT_TAG 392164c044dea641b7a42dc1a2e89da464289770 # tag: v0.4.0 | ||
) | ||
|
||
FetchContent_Declare( eigen | ||
GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git | ||
GIT_TAG d0bfdc1658ca0b4c659fd3702c351d2c2cdc876c # 3.4.1 branch on July 26, 2023 | ||
) | ||
|
||
####################################################################### | ||
# Load dependencies | ||
####################################################################### | ||
|
||
if(scion.python) | ||
FetchContent_Declare( pybind11 | ||
GIT_REPOSITORY ../../pybind/pybind11 | ||
GIT_TAG 5b0a6fc2017fcc176545afe3e09c9f9885283242 # tag: v2.10.4 | ||
) | ||
FetchContent_MakeAvailable( | ||
pybind11 | ||
) | ||
endif() | ||
|
||
if(scion.tests) | ||
FetchContent_Declare( Catch2 | ||
GIT_REPOSITORY ../../catchorg/Catch2 | ||
GIT_TAG 3f0283de7a9c43200033da996ff9093be3ac84dc # tag: v3.3.2 | ||
) | ||
FetchContent_MakeAvailable( | ||
Catch2 | ||
) | ||
endif() | ||
|
||
FetchContent_MakeAvailable( | ||
tools | ||
eigen | ||
) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include(CMakeFindDependencyMacro) | ||
|
||
if (NOT TARGET njoy::tools) | ||
find_dependency(tools) | ||
endif() | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/scion-targets.cmake") |
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