Commit daf56207 authored by Henrik Fehlauer's avatar Henrik Fehlauer

Remove references to Android and KStars from CMake

FindCFitsio.cmake was copied from KStars, but we do not care about
Android and also do not have a BUILD_KSTARSLITE_DIR.
parent 8f0a9602
......@@ -27,28 +27,17 @@ else (CFITSIO_INCLUDE_DIR AND CFITSIO_LIBRARIES)
endif (PKG_CONFIG_FOUND)
endif (NOT WIN32)
if(ANDROID)
find_path(CFITSIO_INCLUDE_DIR fitsio.h
${BUILD_KSTARSLITE_DIR}/include
NO_DEFAULT_PATH
)
else(ANDROID)
find_path(CFITSIO_INCLUDE_DIR fitsio.h
${PC_CFITSIO_INCLUDE_DIRS}
${_obIncDir}
${GNUWIN32_DIR}/include
)
endif(ANDROID)
find_path(CFITSIO_INCLUDE_DIR fitsio.h
${PC_CFITSIO_INCLUDE_DIRS}
${_obIncDir}
${GNUWIN32_DIR}/include
)
find_library(CFITSIO_LIBRARIES NAMES cfitsio libcfitsio
PATHS
if(ANDROID)
${BUILD_KSTARSLITE_DIR}/android_libs/${ANDROID_ARCHITECTURE}
else(ANDROID)
${PC_CFITSIO_LIBRARY_DIRS}
${_obIncDir}
${GNUWIN32_DIR}/include
endif(ANDROID)
)
if(CFITSIO_INCLUDE_DIR AND CFITSIO_LIBRARIES)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment