@@ -7,11 +7,13 @@ include(FetchContent)
77
88CPMAddPackage(
"gh:gabime/[email protected] " )
99CPMAddPackage("gh:ericniebler/range-v3#0.12.0" )
10+ CPMAddPackage(
"gh:nlohmann/[email protected] " )
1011CPMAddPackage("gh:docopt/docopt.cpp#v0.6.3" )
1112CPMAddPackage("gh:doctest/doctest#v2.4.11" )
1213CPMAddPackage("gh:mateidavid/zstr#v1.0.7" )
1314CPMAddPackage("gh:martinus/nanobench#v4.3.11" )
1415CPMAddPackage("gh:pybind/pybind11#v2.12.0" )
16+ CPMAddPackage("gh:mlund/coulombgalore#a646d4d2467442175333307ff91048b6d777cb13" )
1517CPMAddPackage("gh:imneme/pcg-cpp#ffd522e7188bef30a00c74dc7eb9de5faff90092" )
1618CPMAddPackage("gh:ArashPartow/exprtk#cc1b800c2bd1ac3ac260478c915d2aec6f4eb41c" )
1719
@@ -20,12 +22,6 @@ CPMAddPackage(
2022 GIT_TAG v0.4.0
2123)
2224
23- CPMAddPackage(
24- NAME nlohmann_json VERSION 3.12.0
25- URL https://github.com/nlohmann/json/releases/download/v3.12.0/include .zip
26- OPTIONS "JSON_BuildTests OFF"
27- )
28-
2925CPMAddPackage(
3026 NAME Eigen VERSION 3.4.0 DOWNLOAD_ONLY YES
3127 URL https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
@@ -46,11 +42,6 @@ CPMAddPackage("gh:pybind/pybind11_json#0.2.14")
4642set_property (TARGET spdlog PROPERTY POSITION_INDEPENDENT_CODE ON )
4743set_property (TARGET docopt PROPERTY POSITION_INDEPENDENT_CODE ON )
4844
49- if (nlohmann_json_ADDED)
50- add_library (nlohmann_json INTERFACE IMPORTED )
51- target_include_directories (nlohmann_json INTERFACE ${nlohmann_json_SOURCE_DIR} /include )
52- endif ()
53-
5445add_compile_definitions ("NLOHMANN_JSON_HPP" ) # older versions used this macro. Now it's suffixed with "_"
5546
5647if (mpl_ADDED)
@@ -202,26 +193,9 @@ if (ENABLE_FREESASA)
202193 add_dependencies (freesasa project_freesasa)
203194endif ()
204195
205- ################
206- # COULOMBGALORE
207- ################
208-
209- FetchContent_Declare(
210- coulombgalore
211- URL https://github.com/mlund/coulombgalore/archive/4055f58538d781acccb2937ab4580855fcba31f8.tar.gz
212- URL_HASH MD5=922f0c5988c0f70c887d65b7cf2762ac
213- BUILD_COMMAND ""
214- INSTALL_COMMAND ""
215- EXCLUDE_FROM_ALL
216- DOWNLOAD_EXTRACT_TIMESTAMP true )
217- FetchContent_GetProperties(coulombgalore)
218- if (NOT coulombgalore_POPULATED)
219- FetchContent_MakeAvailable(coulombgalore)
220- endif ()
221- include_directories (SYSTEM ${coulombgalore_SOURCE_DIR} )
222-
223196# Add third-party headers to include path. Note this is done with SYSTEM
224197# to disable potential compiler warnings
225198
226- include_directories (SYSTEM ${trompeloeil_SOURCE_DIR} /include ${nanobench_SOURCE_DIR} /src/include
199+ include_directories (SYSTEM ${trompeloeil_SOURCE_DIR} /include ${nanobench_SOURCE_DIR} /src/include ${Eigen_SOURCE_DIR}
200+ ${coulombgalore_SOURCE_DIR} /include
227201 ${Pybind11IncludeDir} ${CppsidIncludeDir} ${XdrfileIncludeDir} ${ProgressTrackerIncludeDir} ${doctest_SOURCE_DIR} )
0 commit comments