summaryrefslogtreecommitdiffstats
path: root/src/blkin/blkin-lib/tests/CMakeLists.txt
blob: d69cec3dac77120a3ef2f7e364bbc019fe24516d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#test
add_executable(testc test.c)
target_link_libraries(testc blkin lttng-ust)
add_test(NAME testc COMMAND $<TARGET_FILE:testc>)

#testpp
add_executable(testpp test.cc)
set_target_properties(testpp PROPERTIES COMPILE_FLAGS "-std=c++11")
target_link_libraries(testpp blkin lttng-ust pthread)
add_test(NAME testpp COMMAND $<TARGET_FILE:testpp>)

#testppp
add_executable(testppp test_p.cc)
target_link_libraries(testppp blkin lttng-ust)
add_test(NAME testppp COMMAND $<TARGET_FILE:testppp>)