File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ include(../cmake/tools.cmake)
1111enable_testing ()
1212
1313add_subdirectory (
14- ${CMAKE_CURRENT_LIST_DIR} /../standalone
15- ${CMAKE_BINARY_DIR} /standalone
14+ ${CMAKE_CURRENT_LIST_DIR} /../examples
15+ ${CMAKE_BINARY_DIR} /examples
1616)
1717add_subdirectory (${CMAKE_CURRENT_LIST_DIR} /../test ${CMAKE_BINARY_DIR} /test )
1818add_subdirectory (
Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.14...3.22)
2+
3+ project (Examples LANGUAGES CXX)
4+
5+ add_subdirectory (
6+ ${CMAKE_CURRENT_LIST_DIR} /plain-malloc
7+ ${CMAKE_BINARY_DIR} /examples/plain-malloc
8+ )
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.14...3.22)
22
33if (POLICY CMP0167)
4- cmake_policy (SET CMP0167 NEW)
4+ cmake_policy (SET CMP0167 NEW)
55endif ()
6- project (KitGenBenchStandalone LANGUAGES CXX)
6+ project (KitGenBenchExamplePlainMalloc LANGUAGES CXX)
77
88# --- Import tools ----
99
10- include (../cmake/tools.cmake)
10+ include (../../ cmake/tools.cmake)
1111
1212# ---- Dependencies ----
1313
14- include (../cmake/CPM.cmake)
14+ include (../../ cmake/CPM.cmake)
1515
1616cpmaddpackage(
1717 NAME nlohmann_json
@@ -25,7 +25,7 @@ cpmaddpackage(
2525 GIT_TAG 1.2.0
2626)
2727
28- cpmaddpackage(NAME KitGenBench SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR} /..)
28+ cpmaddpackage(NAME KitGenBench SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR} /../.. )
2929
3030# ---- Create standalone executable ----
3131
@@ -37,7 +37,7 @@ set_target_properties(
3737 ${PROJECT_NAME}
3838 PROPERTIES
3939 CXX_STANDARD 20
40- OUTPUT_NAME "KitGenBench"
40+ OUTPUT_NAME ${PROJECT_NAME}
4141 CXX_STANDARD_REQUIRED ON
4242 CXX_EXTENSIONS OFF
4343)
File renamed without changes.
You can’t perform that action at this time.
0 commit comments