TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / external / xdg / CMakeLists.txt
1 # We have to manually alter the cxx flags to have a working 
2 # travis-ci build. Its container-based infrastructure only features 
3 # a very old cmake that does not support the more current:
4 #   set_property(TARGET xdg_test PROPERTY CXX_STANDARD 11)
5 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
6
7 find_package(Boost COMPONENTS filesystem system unit_test_framework)
8
9 include_directories(
10     .
11     ${Boost_INCLUDE_DIRS}
12 )
13
14 add_library(xdg STATIC xdg.cpp)
15 set_property(TARGET xdg PROPERTY CXX_STANDARD 11)
16 target_link_libraries(xdg ${Boost_LIBRARIES})
17
18 enable_testing()
19 add_definitions(-DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN -DBOOST_TEST_MODULE=xdg)
20 add_executable(xdg_test xdg_test.cpp)
21 set_property(TARGET xdg_test PROPERTY CXX_STANDARD 11)
22 target_link_libraries(xdg_test xdg ${Boost_LIBRARIES})
23
24 add_test(xdg_test xdg_test)