Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ add_subdirectory(
${CMAKE_CURRENT_LIST_DIR}/simple-mallocMC
${CMAKE_BINARY_DIR}/examples/simple-mallocMC
)


add_subdirectory(
${CMAKE_CURRENT_LIST_DIR}/multi-setup-mallocMC
${CMAKE_BINARY_DIR}/examples/multi-setup-mallocMC
)
57 changes: 57 additions & 0 deletions examples/multi-setup-mallocMC/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
cmake_minimum_required(VERSION 3.14...3.22)

if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()
project(KitGenBenchMultiSetupMallocMC LANGUAGES CXX)

# --- Import tools ----

include(../../cmake/tools.cmake)

# ---- Dependencies ----

include(../../cmake/CPM.cmake)

cpmaddpackage(
NAME nlohmann_json
GITHUB_REPOSITORY nlohmann/json
VERSION 3.11.3 NO_TESTS
)

cpmaddpackage(
NAME alpaka
GITHUB_REPOSITORY alpaka-group/alpaka
GIT_TAG 1.2.0
)

cpmaddpackage(
NAME mallocMC
GITHUB_REPOSITORY chillenzer/mallocMC
GIT_TAG update-cmake
)

cpmaddpackage(NAME KitGenBench SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/../..)

# ---- Create standalone executable ----

file(GLOB sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/source/main.cpp)

alpaka_add_executable(${PROJECT_NAME} ${sources})

set_target_properties(
${PROJECT_NAME}
PROPERTIES
CXX_STANDARD 20
OUTPUT_NAME ${PROJECT_NAME}
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)

target_link_libraries(
${PROJECT_NAME}
KitGenBench::KitGenBench
nlohmann_json::nlohmann_json
alpaka::alpaka
mallocMC::mallocMC
)
Loading
Loading