You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
585 B
19 lines
585 B
cmake_minimum_required(VERSION 3.18)
|
|
|
|
project(offloading-cacher)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
|
|
|
|
find_package(NUMA REQUIRED)
|
|
|
|
set(DML_SOURCE_DIR "../../DML/include/")
|
|
set(SOURCES main.cpp)
|
|
|
|
add_executable(offloading-cacher ${SOURCES})
|
|
|
|
target_include_directories(offloading-cacher PRIVATE ${CMAKE_SOURCE_DIR} ${NUMA_INCLUDE_DIRS} ${DML_SOURCE_DIR})
|
|
target_link_libraries(offloading-cacher PRIVATE libdml.a pthread ${CMAKE_DL_LIBS} ${NUMA_LIBRARY})
|
|
|
|
install(TARGETS offloading-cacher DESTINATION ${CMAKE_INSTALL_PREFIX})
|