]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/fio/CMakeLists.txt
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / test / fio / CMakeLists.txt
1 add_library(fio_ceph_objectstore SHARED fio_ceph_objectstore.cc)
2 target_include_directories(fio_ceph_objectstore PUBLIC ${FIO_INCLUDE_DIR})
3
4 # prevent fio from adding a 'typedef int bool'
5 set(FIO_CFLAGS "-DCONFIG_HAVE_BOOL")
6
7 # fio headers use typeof(), which requires c++11 extensions
8 if(CMAKE_VERSION VERSION_LESS "3.1")
9 set_target_properties(fio_ceph_objectstore PROPERTIES
10 COMPILE_FLAGS "-std=gnu++11 ${FIO_CFLAGS}")
11 else()
12 set_target_properties(fio_ceph_objectstore PROPERTIES
13 CXX_EXTENSIONS ON
14 COMPILE_FLAGS "${FIO_CFLAGS}")
15 endif()
16
17 target_link_libraries(fio_ceph_objectstore os global)
18 install(TARGETS fio_ceph_objectstore DESTINATION lib)