-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (23 loc) · 1.02 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.14)
# Subproject of efika
project(efika-perf)
#-------------------------------------------------------------------------------
# EXECUTABLE configuration
#-------------------------------------------------------------------------------
add_executable(${PROJECT_NAME})
target_sources(${PROJECT_NAME} PRIVATE src/bench_main.cc)
#-------------------------------------------------------------------------------
# DEPENDENCY configuration
#-------------------------------------------------------------------------------
# Celero::celero
find_package(Celero CONFIG REQUIRED)
# Efika::efika
find_package(Efika CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE Celero::celero)
#-------------------------------------------------------------------------------
# BENCHMARKS configuration
#-------------------------------------------------------------------------------
foreach(bench apss)
add_subdirectory(src/${bench})
target_link_libraries(${PROJECT_NAME} PRIVATE EfikaPerf::${bench})
endforeach()