Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 6471b7b

Browse files
authored
navfn: stop installing test headers (#1085)
The navtest executable is only built if FLTK is installed. However, the header it uses is installed regardless, and requires FLTK. Nothing else uses this header, and navfn doesn't depend upon FLTK, so stop installing the header. Also fix navtest to actually build when FLTK is installed. Signed-off-by: Kyle Fazzari <kyle@canonical.com>
1 parent 90c0713 commit 6471b7b

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

navfn/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ message (STATUS "NAVFN_HAVE_FLTK: ${NAVFN_HAVE_FLTK}, NETPBM: ${NAVFN_HAVE_NETPB
101101
# Just linking -lfltk is not sufficient on OS X
102102
if (NAVFN_HAVE_FLTK AND NAVFN_HAVE_NETPBM AND NOT APPLE)
103103
message (STATUS "FLTK found: adding navtest to build")
104-
add_executable (navtest src/navtest.cpp src/navwin.cpp)
104+
add_executable (navtest src/navtest/navtest.cpp src/navtest/navwin.cpp)
105105
set (FLTK_SKIP_FLUID 1)
106106
set (FLTK_SKIP_FORMS 1)
107107
set (FLTK_SKIP_IMAGES 1)

navfn/src/navtest.cpp renamed to navfn/src/navtest/navtest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//
55

66
#include <navfn/navfn.h>
7-
#include <navfn/navwin.h>
87
#ifdef HAVE_SYS_TIME_H
98
#include <sys/time.h>
109
#endif
@@ -15,6 +14,8 @@
1514
#include <string>
1615
#include <fstream>
1716

17+
#include "navwin.h"
18+
1819
using namespace navfn;
1920

2021
#ifdef __APPLE__

navfn/src/navwin.cpp renamed to navfn/src/navtest/navwin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// simple timing test of the nav fn planner
33
//
44

5-
#include <navfn/navwin.h>
65
#include <string.h>
6+
#include "navwin.h"
77

88
namespace navfn {
99
NavWin::NavWin(int w, int h, const char *name)

navfn/include/navfn/navwin.h renamed to navfn/src/navtest/navwin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <FL/Fl_Window.H>
1313
#include <FL/fl_draw.H>
1414

15-
#include "navfn.h"
15+
#include <navfn/navfn.h>
1616

1717
namespace navfn {
1818
class NavWin

0 commit comments

Comments
 (0)