NMEA: changed signature of nmea::make_sentence to make it more robust.
[marnav.git] / examples / CMakeLists.txt
blob6cd63db6312ff480f4e5c89938e558effaed31d1
1 find_package(Boost 1.53.0
2         COMPONENTS system
3         )
5 include_directories(${CMAKE_SOURCE_DIR}/src)
6 include_directories(${CMAKE_BINARY_DIR}/src)
8 add_compile_options(
9         -pipe
10         -ggdb
11         -Wall
12         -Wextra
13         -pedantic-errors
14         )
16 add_executable(parse_nmea parse_nmea.cpp)
17 target_link_libraries(parse_nmea marnav)
19 if(ENABLE_SEATALK)
20         if(ENABLE_IO)
21                 add_executable(read_seatalk read_seatalk.cpp)
22                 target_link_libraries(read_seatalk marnav)
23         endif()
25         add_executable(seatalk_snippets seatalk_snippets.cpp)
26         target_link_libraries(seatalk_snippets marnav)
27 endif()
29 if(ENABLE_AIS)
30         if(ENABLE_IO)
31                 add_executable(read_ais read_ais.cpp)
32                 target_link_libraries(read_ais marnav)
33         endif()
35         add_executable(create_nmea_from_ais create_nmea_from_ais.cpp)
36         target_link_libraries(create_nmea_from_ais marnav)
38         add_executable(create_nmea_from_ais_2 create_nmea_from_ais_2.cpp)
39         target_link_libraries(create_nmea_from_ais_2 marnav)
41         add_executable(parse_ais parse_ais.cpp)
42         target_link_libraries(parse_ais marnav)
43 endif()
45 if(ENABLE_IO)
46         add_executable(nmea_multiplexer nmea_multiplexer.cpp)
47         target_link_libraries(nmea_multiplexer marnav)
49         add_executable(read_nmea read_nmea.cpp)
50         target_link_libraries(read_nmea marnav)
51 endif()
53 add_executable(bitset_iterate bitset_iterate.cpp)
55 add_executable(select select.cpp)
56 target_link_libraries(select marnav)
58 if(Boost_FOUND AND ENABLE_IO)
59         include_directories(${Boost_INCLUDE_DIRS})
61         add_executable(read_nmea_boostasio
62                 read_nmea_boostasio.cpp
63                 )
64         target_link_libraries(read_nmea_boostasio
65                 marnav
66                 ${Boost_LIBRARIES}
67                 )
69         if(ENABLE_SEATALK)
70                 add_executable(seatalk_nmea_converter
71                         simple_seatalk_nmea_converter.cpp
72                         )
73                 target_link_libraries(seatalk_nmea_converter
74                         marnav
75                         ${Boost_LIBRARIES}
76                         )
77         endif()
79         add_executable(serial_to_tcp
80                 serial_to_tcp.cpp
81                 )
82         target_link_libraries(serial_to_tcp
83                 marnav
84                 ${Boost_LIBRARIES}
85                 pthread
86                 )
87 endif()
89 add_subdirectory(qtnmeadiag)