diff options
Diffstat (limited to 'test/API/driver/CMakeLists.txt')
-rw-r--r-- | test/API/driver/CMakeLists.txt | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/test/API/driver/CMakeLists.txt b/test/API/driver/CMakeLists.txt index 2210068..23ba053 100644 --- a/test/API/driver/CMakeLists.txt +++ b/test/API/driver/CMakeLists.txt @@ -1,17 +1,34 @@ -cmake_minimum_required(VERSION 2.8.12.2 FATAL_ERROR) +cmake_minimum_required (VERSION 3.18) project(H5_API_TEST_DRIVER CXX) -include(CheckAsan) -include(CheckUbsan) +if (NOT KWSYS_USE_LOCALCONTENT) + set (KWSYS_URL ${KWSYS_TGZ_ORIGPATH}/${KWSYS_TGZ_ORIGNAME}) +else () + set (KWSYS_URL ${TGZPATH}/${KWSYS_TGZ_ORIGNAME}) +endif () +# Only tgz files +FetchContent_Declare (KWSYS + URL ${KWSYS_URL} + URL_HASH "" +) +FetchContent_GetProperties(KWSYS) +if(NOT kwsys_POPULATED) + FetchContent_Populate(KWSYS) -set(CMAKE_CXX_STANDARD 11) + # Copy an additional/replacement files into the populated source + #file(COPY ${HDF_RESOURCES_DIR}/KWSYS/CMakeLists.txt DESTINATION ${hdf5_kwsys_SOURCE_DIR}) -set(KWSYS_NAMESPACE h5_api_test_sys) -set(KWSYS_USE_SystemTools 1) -set(KWSYS_USE_Process 1) -set(KWSYS_USE_RegularExpression 1) -add_subdirectory(kwsys) -include_directories(${CMAKE_CURRENT_BINARY_DIR}/kwsys) + set(CMAKE_CXX_STANDARD 11) + + set(KWSYS_NAMESPACE h5_api_test_sys) + set(KWSYS_USE_SystemTools 1) + set(KWSYS_USE_Process 1) + set(KWSYS_USE_RegularExpression 1) + + add_subdirectory(${hdf5_kwsysb_SOURCE_DIR} ${hdf5_kwsys_BINARY_DIR}) +endif() + +include_directories(${hdf5_kwsys_BINARY_DIR}) add_executable(h5_api_test_driver h5_api_test_driver.cxx) target_link_libraries(h5_api_test_driver h5_api_test_sys) |