Diff of /cmake/modules/FindGPSim.cmake [9e3b00] .. [812dd5]  Maximize  Restore

Switch to side-by-side view

--- a/cmake/modules/FindGPSim.cmake
+++ b/cmake/modules/FindGPSim.cmake
@@ -1,3 +1,13 @@
+# CMake module to find GPSim
+#
+# possibly defined variables after this script is run:
+# GPSIM_FOUND
+# HAVE_GPSIM_0_21_4
+# HAVE_GPSIM_0_21_12
+# HAVE_GPSIM_0_21_11
+# NO_GPSIM
+#
+# start by looking for 'curses' library
 
 FIND_PATH( GPSim_INCLUDE_DIR gpsim_interface.h /usr/include/gpsim /usr/local/include/gpsim )
 
@@ -7,7 +17,8 @@
 	set( GPSim_FOUND TRUE )
 endif( GPSim_INCLUDE_DIR AND GPSim_LIBRARY )
 
-if ( GPSim_FOUND )
+if( GPSim_FOUND)
+
 	INCLUDE( CheckCXXSourceCompiles )
 
 	set( CMAKE_REQUIRED_INCLUDES
@@ -39,41 +50,38 @@
 
 	CHECK_INCLUDE_FILE_CXX( ${GPSim_INCLUDE_DIR}/ValueCollections.h HAVE_GPSIM_0_21_12 )
 
-	if( HAVE_GPSIM_0_21_12 )
-        	message( STATUS "GPSim 0.21.12 found" )
-        	set( GPSIM_0_21_12 "GPSim 0.21.12 found" )
-	else( HAVE_GPSIM_0_21_12 )
-        	if( HAVE_GPSIM_0_21_4 )
-                	message( STATUS "GPSim 0.21.4 found" )
-                	set( GPSIM_0_21_4 "GPSim 0.21.4 found" )
-        	else( HAVE_GPSIM_0_21_4 )
-                	if( HAVE_GPSIM_0_21_11 )
-                        	message( STATUS "GPSim 0.21.11 found" )
-                        	set( GPSIM_0_21_11 "GPSim 0.21.11 found" )
-                	else( HAVE_GPSIM_0_21_11 )
-                        	message( STATUS "No GPSim found" )
-                        	set( NO_GPSIM "No GPSim found" )
-                	endif( HAVE_GPSIM_0_21_11 )
-        	endif( HAVE_GPSIM_0_21_4 )
-	endif( HAVE_GPSIM_0_21_12 )
 
-	INCLUDE( CheckLibraryExists )
-	CHECK_LIBRARY_EXISTS( readline readline /usr/lib HAVE_LIBREADLINE )
+    if( HAVE_GPSIM_0_21_12 )
+        message( STATUS "GPSim 0.21.12 found" )
+        set( GPSIM_0_21_12 "GPSim 0.21.12 found" )
+    else( HAVE_GPSIM_0_21_12 )
+            if( HAVE_GPSIM_0_21_4 )
+                    message( STATUS "GPSim 0.21.4 found" )
+                    set( GPSIM_0_21_4 "GPSim 0.21.4 found" )
+            else( HAVE_GPSIM_0_21_4 )
+                    if( HAVE_GPSIM_0_21_11 )
+                            message( STATUS "GPSim 0.21.11 found" )
+                            set( GPSIM_0_21_11 "GPSim 0.21.11 found" )
+                    else( HAVE_GPSIM_0_21_11 )
+                            message( STATUS "No GPSim found" )
+                            set( NO_GPSIM "No GPSim found" )
+                    endif( HAVE_GPSIM_0_21_11 )
+            endif( HAVE_GPSIM_0_21_4 )
+    endif( HAVE_GPSIM_0_21_12 )
 
-	find_package( Curses )
+    set( GPSIM_INCLUDE_DIRS
+        ${GPSim_INCLUDE_DIR}
+        ${GLIB2_INCLUDE_DIRS}
+        )
+    set( GPSIM_LIBRARY
+        ${GPSim_LIBRARY}
+        ${GLIB2_LIBRARY}
+        )
+    set( GPSIM_FOUND TRUE )
+endif( GPSim_FOUND )
 
-	if( HAVE_LIBREADLINE )
-		set( GPSIM_INCLUDE_DIRS 
-			${GPSim_INCLUDE_DIR}
-			${GLIB2_INCLUDE_DIRS}
-			)
-		set( GPSIM_LIBRARY
-			-lreadline
-			${GPSim_LIBRARY}
-			${GLIB2_LIBRARY}
-			)
-		set( GPSIM_FOUND TRUE )
-	else( HAVE_LIBREADLINE )
 
-	endif( HAVE_LIBREADLINE )
-endif( GPSim_FOUND)
+if(NOT GPSim_FOUND)
+    message( STATUS "No GPSim found" )
+    set( NO_GPSIM "No GPSim found" )
+endif(NOT GPSim_FOUND)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks