From 166b8896402bf4a9386c74940320b4c5866a550d Mon Sep 17 00:00:00 2001
From: Fernando Herrero Cotarelo <fherrero@iri.upc.edu>
Date: Wed, 27 Jan 2016 09:57:01 +0000
Subject: [PATCH] asterx1_gps: fixed example CMakeLists depending on 
 gpsToolkitLibrary presence

---
 src/examples/CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/examples/CMakeLists.txt b/src/examples/CMakeLists.txt
index e3afc6c..3383397 100644
--- a/src/examples/CMakeLists.txt
+++ b/src/examples/CMakeLists.txt
@@ -2,7 +2,10 @@
 ADD_EXECUTABLE(testasterx1 testasterx1.cpp)
 
 # edit the following line to add the necessary libraries
-TARGET_LINK_LIBRARIES(testasterx1 asterx1_gps asterx1_process)
+IF(gpstk_LIBRARY)
+  TARGET_LINK_LIBRARIES(testasterx1 asterx1_process)
+ENDIF(gpstk_LIBRARY)
+TARGET_LINK_LIBRARIES(testasterx1 asterx1_gps)
 
 #fast building
 # ADD_EXECUTABLE(testasterx1 testasterx1.cpp ../asterx1.cpp)
-- 
GitLab