Skip to content

Commit 2a97178

Browse files
committed
Rename standalone -> examples
1 parent 123770e commit 2a97178

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

all/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ include(../cmake/tools.cmake)
1111
enable_testing()
1212

1313
add_subdirectory(
14-
${CMAKE_CURRENT_LIST_DIR}/../standalone
15-
${CMAKE_BINARY_DIR}/standalone
14+
${CMAKE_CURRENT_LIST_DIR}/../examples
15+
${CMAKE_BINARY_DIR}/examples
1616
)
1717
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../test ${CMAKE_BINARY_DIR}/test)
1818
add_subdirectory(

examples/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
)

standalone/CMakeLists.txt renamed to examples/plain-malloc/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
cmake_minimum_required(VERSION 3.14...3.22)
22

33
if(POLICY CMP0167)
4-
cmake_policy(SET CMP0167 NEW)
4+
cmake_policy(SET CMP0167 NEW)
55
endif()
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

1616
cpmaddpackage(
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.

0 commit comments

Comments
 (0)