-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
48 lines (42 loc) · 1.02 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#--------------------------------------------------------
# The CMakeLists.txt for: uFldHazardSensor
# Author(s): Mike Benjamin
#--------------------------------------------------------
cmake_minimum_required(VERSION 3.5)
find_package(PkgConfig)
pkg_check_modules(PC_ZeroMQ QUIET zmq)
find_path(ZeroMQ_INCLUDE_DIR
NAMES zmq.hpp
PATHS ${PC_ZeroMQ_INCLUDE_DIRS}
)
find_library(ZeroMQ_LIBRARY
NAMES zmq
PATHS ${PC_ZeroMQ_LIBRARY_DIRS}
)
# Set System Specific Libraries
if (${WIN32})
SET(SYSTEM_LIBS
wsock32)
else (${WIN32})
SET(SYSTEM_LIBS
m
pthread)
endif (${WIN32})
SET(SRC
HazardSensor_MOOSApp.cpp
HazardSensor_Info.cpp
HeadingHistory.cpp
main.cpp
)
ADD_EXECUTABLE(uFldHazardSensor ${SRC})
target_include_directories(uFldHazardSensor PUBLIC ${ZeroMQ_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(uFldHazardSensor
${MOOS_LIBRARIES}
ufld_hazards
mbutil
geometry
contacts
apputil
${SYSTEM_LIBS}
${ZeroMQ_LIBRARY}
)