Build: docker for clang-13.0.0
[marnav.git] / examples / CMakeLists.txt
blob5de847528ebaf2800ffca06ae8561a269fc925df
1 find_package(Boost 1.53.0 COMPONENTS system)
3 set_property(DIRECTORY PROPERTY COMPILE_OPTIONS
4         -pipe
5         -ggdb
6         -Wall
7         -Wextra
8         -pedantic-errors
9         )
11 add_executable(parse_nmea parse_nmea.cpp)
12 target_link_libraries(parse_nmea marnav::marnav)
14 add_executable(seatalk_snippets seatalk_snippets.cpp)
15 target_link_libraries(seatalk_snippets marnav::marnav)
17 add_executable(create_nmea_from_ais create_nmea_from_ais.cpp)
18 target_link_libraries(create_nmea_from_ais marnav::marnav)
20 add_executable(create_nmea_from_ais_2 create_nmea_from_ais_2.cpp)
21 target_link_libraries(create_nmea_from_ais_2 marnav::marnav)
23 add_executable(parse_ais parse_ais.cpp)
24 target_link_libraries(parse_ais marnav::marnav)
26 add_executable(select select.cpp)
27 target_link_libraries(select marnav::marnav)
29 add_executable(bitset_iterate bitset_iterate.cpp)
30 target_link_libraries(bitset_iterate marnav::marnav)
32 if(ENABLE_IO)
33         add_executable(read_seatalk read_seatalk.cpp)
34         target_link_libraries(read_seatalk marnav::marnav)
36         add_executable(read_ais read_ais.cpp)
37         target_link_libraries(read_ais marnav::marnav)
39         add_executable(nmea_multiplexer nmea_multiplexer.cpp)
40         target_link_libraries(nmea_multiplexer marnav::marnav)
42         add_executable(read_nmea read_nmea.cpp)
43         target_link_libraries(read_nmea marnav::marnav)
44 endif()
46 if(Boost_FOUND AND ENABLE_IO)
47         include_directories(${Boost_INCLUDE_DIRS})
49         add_executable(read_nmea_boostasio read_nmea_boostasio.cpp)
50         target_link_libraries(read_nmea_boostasio
51                 marnav::marnav
52                 ${Boost_LIBRARIES}
53                 pthread
54                 )
56         add_executable(seatalk_nmea_converter simple_seatalk_nmea_converter.cpp)
57         target_link_libraries(seatalk_nmea_converter
58                 marnav::marnav
59                 ${Boost_LIBRARIES}
60                 pthread
61                 )
63         add_executable(serial_to_tcp serial_to_tcp.cpp)
64         target_link_libraries(serial_to_tcp
65                 marnav::marnav
66                 ${Boost_LIBRARIES}
67                 pthread
68                 )
69 endif()
71 add_subdirectory(qtnmeadiag)