From 42f892e70b52ead3f6b739e9741beb8d17c67607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Mon, 27 Nov 2023 11:26:46 +0100 Subject: [PATCH] restructure CMakeLists.txt slightly --- benchmarks/CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index 150a617..d396e70 100755 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -1,21 +1,20 @@ cmake_minimum_required(VERSION 3.18) -list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules") - project(dml-benchmark) set(CMAKE_CXX_STANDARD 20) -include_directories("../../DML/include/") +list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules") find_package(NUMA REQUIRED) +set(DML_SOURCE_DIR "../../DML/include/") set(SOURCES main.cpp) set(INCLUDES benchmark.hpp statuscode-tostring.hpp task-data.hpp) add_executable(dml-benchmark ${SOURCES}) -target_include_directories(dml-benchmark PRIVATE ${NUMA_INCLUDE_DIRS}) +target_include_directories(dml-benchmark PRIVATE ${CMAKE_SOURCE_DIR} ${NUMA_INCLUDE_DIRS} ${DML_SOURCE_DIR}) target_link_libraries(dml-benchmark PRIVATE libdml.a pthread ${CMAKE_DL_LIBS} ${NUMA_LIBRARY}) -install(TARGETS dml-benchmark DESTINATION ${CMAKE_INSTALL_PREFIX}) \ No newline at end of file +install(TARGETS dml-benchmark DESTINATION ${CMAKE_INSTALL_PREFIX})