Skip to content

Commit

Permalink
Updated to new build system.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathangibson14 committed Oct 29, 2020
1 parent e04ed6e commit f460461
Show file tree
Hide file tree
Showing 41 changed files with 108 additions and 3,078 deletions.
12 changes: 0 additions & 12 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
[submodule "dependencies/catch-adapter"]
path = dependencies/catch-adapter
url = https://github.com/njoy/catch-adapter.git
[submodule "dependencies/dimwits"]
path = dependencies/dimwits
url = https://github.com/njoy/DimensionalAnalysis.git
[submodule "dependencies/range-v3-adapter"]
path = dependencies/range-v3-adapter
url = https://github.com/njoy/range-v3-adapter.git
[submodule "dependencies/Log"]
path = dependencies/Log
url = https://github.com/njoy/Log.git
357 changes: 52 additions & 305 deletions CMakeLists.txt

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions cmake/develop_dependencies.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
cmake_minimum_required( VERSION 3.14 )
include( FetchContent )

#######################################################################
# Declare project dependencies
#######################################################################

FetchContent_Declare( range-v3-adapter
GIT_REPOSITORY https://github.com/njoy/range-v3-adapter
GIT_TAG origin/master
GIT_SHALLOW TRUE
)

FetchContent_Declare( catch-adapter
GIT_REPOSITORY https://github.com/njoy/catch-adapter
GIT_TAG origin/master
GIT_SHALLOW TRUE
)

FetchContent_Declare( Log
GIT_REPOSITORY https://github.com/njoy/Log
GIT_TAG origin/master
GIT_SHALLOW TRUE
)

FetchContent_Declare( dimwits
GIT_REPOSITORY https://github.com/njoy/DimensionalAnalysis
GIT_TAG origin/master
GIT_SHALLOW TRUE
)

#######################################################################
# Load dependencies
#######################################################################

FetchContent_MakeAvailable(
range-v3-adapter
catch-adapter
Log
dimwits
)
15 changes: 15 additions & 0 deletions cmake/unit_testing.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#######################################################################
# Setup
#######################################################################

message( STATUS "Adding constants unit testing" )
enable_testing()


#######################################################################
# Unit testing directories
#######################################################################

add_subdirectory( src/constants/CODATA2014/test )
add_subdirectory( src/constants/CODATA2018/test )
add_subdirectory( src/constants/math/test )
1 change: 0 additions & 1 deletion dependencies/Log
Submodule Log deleted from 0bdd88
1 change: 0 additions & 1 deletion dependencies/catch-adapter
Submodule catch-adapter deleted from fb84b8
1 change: 0 additions & 1 deletion dependencies/dimwits
Submodule dimwits deleted from d2b187
1 change: 0 additions & 1 deletion dependencies/range-v3-adapter
Submodule range-v3-adapter deleted from e8b1fb
10 changes: 0 additions & 10 deletions metaconfigure/LICENSE

This file was deleted.

6 changes: 0 additions & 6 deletions metaconfigure/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions metaconfigure/__init__.py

This file was deleted.

Loading

0 comments on commit f460461

Please sign in to comment.