mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
21 lines
697 B
CMake
21 lines
697 B
CMake
cmake_minimum_required(VERSION 3.7)
|
|
include(../../cmake/HermitCore-Application.cmake)
|
|
|
|
project(hermit_openmpbench C)
|
|
|
|
add_executable(syncbench syncbench.c common.c)
|
|
target_link_libraries(syncbench PUBLIC -fopenmp)
|
|
|
|
add_executable(taskbench taskbench.c common.c)
|
|
target_link_libraries(taskbench PUBLIC -fopenmp)
|
|
|
|
add_library(common_sched STATIC common.c)
|
|
target_compile_definitions(common_sched PUBLIC -DSCHEDBENCH)
|
|
target_compile_options(common_sched PUBLIC -fopenmp)
|
|
target_link_libraries(common_sched PUBLIC -fopenmp)
|
|
|
|
add_executable(schedbench schedbench.c)
|
|
target_link_libraries(schedbench common_sched)
|
|
|
|
# deployment: exclude common_sched
|
|
install_local_targets(extra/benchmarks common_sched)
|