Use CMAKE_MODULE_PATH
This commit is contained in:
parent
00c4a4d066
commit
61a7d65def
@ -19,6 +19,7 @@ endif()
|
||||
## INCLUDE
|
||||
##
|
||||
##
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
|
||||
include(ExternalProject)
|
||||
|
||||
##
|
||||
@ -45,7 +46,7 @@ option(JSON_MultipleHeaders "Use non-amalgamated version of the library." OF
|
||||
option(JSON_SystemInclude "Include as system headers (skip for clang-tidy)." OFF)
|
||||
|
||||
if (JSON_CI)
|
||||
include(cmake/ci.cmake)
|
||||
include(ci)
|
||||
endif ()
|
||||
|
||||
##
|
||||
|
||||
@ -23,7 +23,7 @@ if(NOT benchmark_POPULATED)
|
||||
endif()
|
||||
|
||||
# download test data
|
||||
include(${CMAKE_SOURCE_DIR}/../cmake/download_test_data.cmake)
|
||||
include(download_test_data)
|
||||
|
||||
# benchmark binary
|
||||
add_executable(json_benchmarks src/benchmarks.cpp)
|
||||
|
||||
@ -4,7 +4,7 @@ set(_json_test_cmake_list_file ${CMAKE_CURRENT_LIST_FILE})
|
||||
# download test data
|
||||
#############################################################################
|
||||
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/download_test_data.cmake)
|
||||
include(download_test_data)
|
||||
|
||||
# test fixture to download test data
|
||||
add_test(NAME "download_test_data" COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR}
|
||||
|
||||
@ -5,7 +5,7 @@ option(JSON_FastTests "Skip expensive/slow tests." OFF)
|
||||
|
||||
set(JSON_TestStandards "" CACHE STRING "The list of standards to test explicitly.")
|
||||
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/test.cmake)
|
||||
include(test)
|
||||
|
||||
#############################################################################
|
||||
# override standard support
|
||||
|
||||
Loading…
Reference in New Issue
Block a user