File tree Expand file tree Collapse file tree 3 files changed +414
-0
lines changed
Expand file tree Collapse file tree 3 files changed +414
-0
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,9 @@ add_subdirectory(
1111 ${CMAKE_CURRENT_LIST_DIR} /simple-mallocMC
1212 ${CMAKE_BINARY_DIR} /examples/simple-mallocMC
1313)
14+
15+
16+ add_subdirectory (
17+ ${CMAKE_CURRENT_LIST_DIR} /multi-setup-mallocMC
18+ ${CMAKE_BINARY_DIR} /examples/multi-setup-mallocMC
19+ )
Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.14...3.22)
2+
3+ if (POLICY CMP0167)
4+ cmake_policy (SET CMP0167 NEW)
5+ endif ()
6+ project (KitGenBenchMultiSetupMallocMC LANGUAGES CXX)
7+
8+ # --- Import tools ----
9+
10+ include (../../cmake/tools.cmake)
11+
12+ # ---- Dependencies ----
13+
14+ include (../../cmake/CPM.cmake)
15+
16+ cpmaddpackage(
17+ NAME nlohmann_json
18+ GITHUB_REPOSITORY nlohmann/json
19+ VERSION 3.11.3 NO_TESTS
20+ )
21+
22+ cpmaddpackage(
23+ NAME alpaka
24+ GITHUB_REPOSITORY alpaka-group/alpaka
25+ GIT_TAG 1.2.0
26+ )
27+
28+ cpmaddpackage(
29+ NAME mallocMC
30+ GITHUB_REPOSITORY chillenzer/mallocMC
31+ GIT_TAG update-cmake
32+ )
33+
34+ cpmaddpackage(NAME KitGenBench SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR} /../..)
35+
36+ # ---- Create standalone executable ----
37+
38+ file (GLOB sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /source /main.cpp)
39+
40+ alpaka_add_executable(${PROJECT_NAME} ${sources} )
41+
42+ set_target_properties (
43+ ${PROJECT_NAME}
44+ PROPERTIES
45+ CXX_STANDARD 20
46+ OUTPUT_NAME ${PROJECT_NAME}
47+ CXX_STANDARD_REQUIRED ON
48+ CXX_EXTENSIONS OFF
49+ )
50+
51+ target_link_libraries (
52+ ${PROJECT_NAME}
53+ KitGenBench::KitGenBench
54+ nlohmann_json::nlohmann_json
55+ alpaka::alpaka
56+ mallocMC::mallocMC
57+ )
You can’t perform that action at this time.
0 commit comments