[Kst] branches/work/kst/portto4/kst

Ted Kisner tskisner.public at gmail.com
Sun Jun 10 01:44:25 CEST 2007


SVN commit 673341 by tskisner:

Begin the porting of configure checks to the cmake build system.  Follow the standard practices for location and naming of files.  This initial commit finds the CFITSIO library.  More coming soon.

 M  +3 -0      CMakeLists.txt  
 M  +9 -1      ConfigureChecks.cmake  
 A             cmake (directory)  
 A             cmake/modules (directory)  
 A             cmake/modules/FindCFITSIO.cmake  
 M  +3 -0      config.h.cmake  


--- branches/work/kst/portto4/kst/CMakeLists.txt #673340:673341
@@ -1,5 +1,8 @@
 project(kst)
 
+# Path for cmake modules before ${CMAKE_ROOT}/Modules/ is checked
+set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
+
 set(KST_VERSION "1.9.0_devel")
 set(KST_LIBKST_VERSION 1.9.0)
 
--- branches/work/kst/portto4/kst/ConfigureChecks.cmake #673340:673341
@@ -1,3 +1,11 @@
 #FIXME Need to do kst specific configure checks here... port configure.in.in
 
-check_function_exists(unsetenv HAVE_UNSETENV)
\ No newline at end of file
+check_function_exists(unsetenv HAVE_UNSETENV)
+
+# Check for the CFITSIO library
+
+find_package(CFITSIO)
+if (CFITSIO_FOUND)
+  set(HAVE_CFITSIO TRUE)
+endif (CFITSIO_FOUND)
+
--- branches/work/kst/portto4/kst/config.h.cmake #673340:673341
@@ -8,5 +8,8 @@
 /* Define if you have unsetenv */
 #cmakedefine HAVE_UNSETENV 1
 
+/* Define if you have cfitsio */
+#cmakedefine HAVE_CFITSIO 1
+
 #endif
 


More information about the Kst mailing list