blob: c138cc0cdc13f2bb22a43ec83c9172b22c01c09c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
if(NOT DEFINED afio_hl)
add_subdirectory(.. afio EXCLUDE_FROM_ALL)
endif()
project(afio-programs VERSION 1.0 LANGUAGES CXX)
function(make_program program)
add_executable(${program} "${program}/main.cpp")
target_include_directories(${program} PRIVATE ..)
target_link_libraries(${program} ${ARGN})
set_target_properties(${program} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
POSITION_INDEPENDENT_CODE ON
)
endfunction()
make_program(benchmark-locking afio_hl)
make_program(fs-probe afio_hl)
|