diff --git a/CMakeLists.txt b/CMakeLists.txt index 77523a2..62850e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,25 +42,7 @@ option( tools.installation "Install njoy::tools" ON ) ######################################################################## list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/.cmake) - -set( REPOSITORIES "release" - CACHE STRING - "Options for where to fetch repositories: develop, release, local" - ) - -message( STATUS "Using ${REPOSITORIES} repositories" ) - -if( REPOSITORIES STREQUAL "develop" ) - include( cmake/develop_dependencies.cmake ) - -elseif( REPOSITORIES STREQUAL "release" ) - include( cmake/release_dependencies.cmake ) - -elseif( REPOSITORIES STREQUAL "local" ) - include( cmake/local_dependencies.cmake ) - -endif() - +include( cmake/dependencies.cmake ) ######################################################################## # Project targets diff --git a/cmake/develop_dependencies.cmake b/cmake/develop_dependencies.cmake deleted file mode 100644 index a2d5d72..0000000 --- a/cmake/develop_dependencies.cmake +++ /dev/null @@ -1,53 +0,0 @@ -cmake_minimum_required( VERSION 3.27 ) -list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/.cmake) -include( shacl_FetchContent ) - -####################################################################### -# Declare project dependencies -####################################################################### - - -shacl_FetchContent_Declare( FastFloat - GIT_REPOSITORY ../../fastfloat/fast_float - GIT_TAG v6.1.1 - GIT_SHALLOW TRUE - ) - -shacl_FetchContent_Declare( spdlog - GIT_REPOSITORY ../../gabime/spdlog - GIT_TAG v1.11.0 - GIT_SHALLOW TRUE - ) -set( SPDLOG_BUILD_PIC CACHE INTERNAL BOOL ON ) -if (tools.installation) - set( SPDLOG_INSTALL CACHE INTERNAL BOOL ON ) -else() - set( SPDLOG_INSTALL CACHE INTERNAL BOOL OFF ) -endif() - -####################################################################### -# Load dependencies -####################################################################### - -shacl_FetchContent_MakeAvailable( - spdlog - FastFloat -) - -if (tools.tests) - shacl_FetchContent_Declare( Catch2 - GIT_REPOSITORY ../../catchorg/catch2 - GIT_TAG v3.3.2 - GIT_SHALLOW TRUE - ) - shacl_FetchContent_MakeAvailable(Catch2) -endif() - -if (tools.python) - shacl_FetchContent_Declare( pybind11 - GIT_REPOSITORY ../../pybind/pybind11 - GIT_TAG v2.10.4 - GIT_SHALLOW TRUE - ) - shacl_FetchContent_MakeAvailable(pybind11) -endif()