blob: 81783d45aabbefddaed01a0562f8530701df0092 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
add_library(fio_ceph_objectstore SHARED fio_ceph_objectstore.cc)
target_include_directories(fio_ceph_objectstore SYSTEM PUBLIC ${FIO_INCLUDE_DIR})
# prevent fio from adding a 'typedef int bool'
set(FIO_CFLAGS "-DCONFIG_HAVE_BOOL")
# fio headers use typeof(), which requires c++11 extensions
set_target_properties(fio_ceph_objectstore PROPERTIES
CXX_EXTENSIONS ON
COMPILE_FLAGS "${FIO_CFLAGS}")
if(WITH_FIO)
add_dependencies(fio_ceph_objectstore fio_ext)
endif()
target_link_libraries(fio_ceph_objectstore os global)
install(TARGETS fio_ceph_objectstore DESTINATION lib)
|