-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
77 lines (60 loc) · 2.42 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#--------------------------------------------------------
# The CMakeLists.txt for: pGridViewer
# Author(s): David Battle
#--------------------------------------------------------
cmake_minimum_required(VERSION 3.5)
project(pGridViewer)
SET(EXEC_NAME pGridViewer)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $ENV{BIN_HOME})
# This allows us to use the header-only JSON library
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
# Switching on C++11 has unleashed deprecation warnings for MOOS
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations" )
#===============================================================================
# FINDING MOOS' HEADERS AND LIBRARIES...
#===============================================================================
# moos - http://www.robots.ox.ac.uk/~mobile/MOOS/wiki/pmwiki.php
find_package(MOOS 10.0)
message("+++++++++++++++++++++++++++++++++++++++++")
message("FIND_PACKAGE CONSIDERED:" ${MOOS_CONSIDERED_CONFIGS})
message("+++++++++++++++++++++++++++++++++++++++++")
if(NOT DEFINED MOOS_LIBRARIES)
message("Defining MOOS_LIBRARIES")
set(MOOS_LIBRARIES MOOS)
endif()
message("+++++++++++++++++++++++++++++++++++++++++")
message("MOOS_INCLUDE_DIRS:" ${MOOS_INCLUDE_DIRS})
message("MOOS_LIBRARIES: " ${MOOS_LIBRARIES})
message("+++++++++++++++++++++++++++++++++++++++++")
#===============================================================================
# FINDING MOOSGeodesy' HEADERS AND LIBRARIES...
#===============================================================================
# moos - http://www.robots.ox.ac.uk/~mobile/MOOS/wiki/pmwiki.php
find_package(MOOSGeodesy)
#link_directories(${MOOSGeodesy_LIBRARY_PATH})
message("+++++++++++++++++++++++++++++++++++++++++")
message("MOOSGeodesy_INCLUDE_DIRS:" ${MOOSGeodesy_INCLUDE_DIRS})
message("MOOSGeodesy_LIBRARY_PATH:" ${MOOSGeodesy_LIBRARY_PATH})
message("+++++++++++++++++++++++++++++++++++++++++")
# Some more packages
find_package( PCL 1.8.0 REQUIRED )
find_package(nlohmann_json 3.5.0 CONFIG REQUIRED)
include_directories(./
$ENV{MOOSIVP_SOURCE_TREE_BASE}/include/ivp
${PCL_INCLUDE_DIRS}
${MOOS_INCLUDE_DIRS}
${MOOSGeodesy_INCLUDE_DIRS})
SET(SRC
GridViewer.cpp
GridViewer_Info.cpp
main.cpp
)
ADD_EXECUTABLE(pGridViewer ${SRC})
TARGET_LINK_LIBRARIES(${EXEC_NAME}
${PCL_LIBRARIES}
${MOOSGeodesy_LIBRARIES}
${MOOS_LIBRARIES}
$ENV{MOOSIVP_SOURCE_TREE_BASE}/lib/libmbutil.a
m
nlohmann_json::nlohmann_json
)