Commit d0ab8b97 authored by Marcos CARDINOT's avatar Marcos CARDINOT

cosmetic fix - fixing indentation of CMakeLists.txt

- This commit aims to fix (ONLY) the indentation of these files, making them more readable
- It is now using a fixed number of spaces (4) to indent everything
parent 392e4280
......@@ -27,16 +27,16 @@ include(ECMAddAppIcon)
# Load the frameworks we need
find_package(KF5 REQUIRED COMPONENTS
Config
Crash
DocTools
WidgetsAddons
NewStuff
I18n
KIO
XmlGui
Plotting
# IconThemes
Config
Crash
DocTools
WidgetsAddons
NewStuff
I18n
KIO
XmlGui
Plotting
# IconThemes
)
find_package(Eigen3 REQUIRED)
......@@ -44,64 +44,68 @@ add_definitions(${EIGEN_DEFINITIONS})
include_directories(${EIGEN3_INCLUDE_DIR})
find_package(CFitsio)
if (CFITSIO_FOUND)
set(HAVE_CFITSIO 1)
if(CFITSIO_FOUND)
set(HAVE_CFITSIO 1)
else(CFITSIO_FOUND)
set(HAVE_CFITSIO 0)
set(HAVE_CFITSIO 0)
endif(CFITSIO_FOUND)
set_package_properties(CFitsio PROPERTIES DESCRIPTION "FITS IO Library" URL "http://heasarc.gsfc.nasa.gov/fitsio/fitsio.html" TYPE OPTIONAL PURPOSE "Support for the FITS (Flexible Image Transport System) data format in KStars.")
find_package(INDI 1.2.0)
#FIXME is there a better way to do this?
if (INDI_FOUND)
#FIXME is the following the right way of doing this?
find_package(KF5 REQUIRED COMPONENTS Notifications)
SET(HAVE_INDI 1)
if(INDI_FOUND)
#FIXME is the following the right way of doing this?
find_package(KF5 REQUIRED COMPONENTS Notifications)
SET(HAVE_INDI 1)
else(INDI_FOUND)
SET(HAVE_INDI 0)
SET(HAVE_INDI 0)
endif(INDI_FOUND)
set_package_properties(INDI PROPERTIES DESCRIPTION "Astronomical instrumentation control" URL "http://www.indilib.org" TYPE OPTIONAL PURPOSE "Support for controlling astronomical devices on Linux with KStars.")
find_package(WCSLIB)
if (WCSLIB_FOUND)
set(HAVE_WCSLIB 1)
if(WCSLIB_FOUND)
set(HAVE_WCSLIB 1)
else(WCSLIB_FOUND)
set(HAVE_WCSLIB 0)
set(HAVE_WCSLIB 0)
endif(WCSLIB_FOUND)
set_package_properties(WCSLIB PROPERTIES DESCRIPTION "World Coordinate System library" URL "http://www.atnf.csiro.au/people/mcalabre/WCS" TYPE OPTIONAL PURPOSE "WCS enables KStars to read and process world coordinate systems in FITS header.")
find_package(Xplanet)
if (XPLANET_FOUND)
set(HAVE_XPLANET 1)
if(XPLANET_FOUND)
set(HAVE_XPLANET 1)
else(XPLANET_FOUND)
set(HAVE_XPLANET 0)
set(HAVE_XPLANET 0)
endif(XPLANET_FOUND)
set_package_properties(Xplanet PROPERTIES DESCRIPTION "Renders an image of all the major planets and most satellites" URL "http://xplanet.sourceforge.net" TYPE OPTIONAL PURPOSE "Gives KStars support for xplanet.")
find_package(AstrometryNet)
if (ASTROMETRYNET_FOUND)
set(HAVE_ASTROMETRYNET 1)
if(ASTROMETRYNET_FOUND)
set(HAVE_ASTROMETRYNET 1)
else(ASTROMETRYNET_FOUND)
set(HAVE_ASTROMETRYNET 0)
set(HAVE_ASTROMETRYNET 0)
endif(ASTROMETRYNET_FOUND)
set_package_properties(AstrometryNet PROPERTIES DESCRIPTION "Astrometrics Library" URL "http://www.astrometry.net" TYPE OPTIONAL PURPOSE "Support for plate solving in KStars.")
find_package(OpenGL)
set_package_properties(OpenGL PROPERTIES DESCRIPTION "Open Graphics Library" URL "http://www.opengl.org" TYPE OPTIONAL PURPOSE "Support for hardware rendering in KStars.")
if (${KF5_VERSION} VERSION_EQUAL 5.18.0 OR ${KF5_VERSION} VERSION_GREATER 5.18.0)
SET(HAVE_KF5WIT 1)
if(${KF5_VERSION} VERSION_EQUAL 5.18.0 OR ${KF5_VERSION} VERSION_GREATER 5.18.0)
SET(HAVE_KF5WIT 1)
else()
SET(HAVE_KF5WIT 0)
SET(HAVE_KF5WIT 0)
endif()
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -Dfexceptions)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-kstars.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-kstars.h )
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/config-kstars.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-kstars.h
)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/kstars/version.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/kstars/version.h )
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/kstars/version.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/kstars/version.h
)
# let our config.h be found first in any case
include_directories (BEFORE ${CMAKE_CURRENT_BINARY_DIR})
......
This diff is collapsed.
This diff is collapsed.
......@@ -5,27 +5,27 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-htmesh.h.cmake ${CMAKE_CURRENT
### HTMesh library
set(HTMesh_LIB_SRCS
${kstars_SOURCE_DIR}/kstars/htmesh/MeshIterator.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/HtmRange.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/HtmRangeIterator.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/RangeConvex.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SkipList.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SkipListElement.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SpatialConstraint.cpp
# ${kstars_SOURCE_DIR}/kstars/htmesh/SpatialDomain.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SpatialEdge.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SpatialException.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SpatialIndex.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SpatialVector.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/HTMesh.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/MeshBuffer.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/MeshIterator.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/cc_aux.c
${kstars_SOURCE_DIR}/kstars/htmesh/MeshIterator.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/HtmRange.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/HtmRangeIterator.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/RangeConvex.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SkipList.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SkipListElement.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SpatialConstraint.cpp
# ${kstars_SOURCE_DIR}/kstars/htmesh/SpatialDomain.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SpatialEdge.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SpatialException.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SpatialIndex.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/SpatialVector.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/HTMesh.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/MeshBuffer.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/MeshIterator.cpp
${kstars_SOURCE_DIR}/kstars/htmesh/cc_aux.c
)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
#TODO is there KF5_ENABLE_EXCEPTIONS?
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions")
add_library(htmesh STATIC ${HTMesh_LIB_SRCS})
......
#FIXME The following doesn't work, cmake complains of "group (action) is not recognized".
ecm_install_icons(ICONS
22-actions-kstars_cbound.png
22-actions-kstars_clines.png
22-actions-kstars_cnames.png
22-actions-kstars_constellationart.png
22-actions-kstars_deepsky.png
22-actions-kstars_flag.png
22-actions-kstars_grid.png
22-actions-kstars_hgrid.png
22-actions-kstars_horizon.png
22-actions-kstars_mw.png
22-actions-kstars_planets.png
22-actions-kstars_satellites.png
22-actions-kstars_stars.png
22-actions-kstars_supernovae.png
22-actions-kstars_ekos.png
22-actions-kstars_indi.png
22-actions-kstars_fitsviewer.png
22-actions-kstars_ekos_setup.png
22-actions-kstars_ekos_scheduler.png
22-actions-kstars_ekos_ccd.png
22-actions-kstars_ekos_mount.png
22-actions-kstars_ekos_focus.png
22-actions-kstars_ekos_align.png
22-actions-kstars_ekos_guide.png
22-actions-kstars_fov.png
32-actions-kstars_clines.png
32-actions-kstars_cnames.png
32-actions-kstars_constellationart.png
32-actions-kstars_deepsky.png
32-actions-kstars_flag.png
32-actions-kstars_grid.png
32-actions-kstars_hgrid.png
32-actions-kstars_horizon.png
32-actions-kstars_mw.png
32-actions-kstars_planets.png
32-actions-kstars_satellites.png
32-actions-kstars_stars.png
32-actions-kstars_supernovae.png
32-actions-kstars_ekos.png
32-actions-kstars_fitsviewer.png
32-actions-kstars_indi.png
32-actions-kstars_ekos_setup.png
32-actions-kstars_ekos_scheduler.png
32-actions-kstars_ekos_ccd.png
32-actions-kstars_ekos_mount.png
32-actions-kstars_ekos_focus.png
32-actions-kstars_ekos_align.png
32-actions-kstars_ekos_guide.png
32-actions-kstars_fov.png
48-actions-kstars_clines.png
48-actions-kstars_cnames.png
48-actions-kstars_constellationart.png
48-actions-kstars_deepsky.png
48-actions-kstars_flag.png
48-actions-kstars_grid.png
48-actions-kstars_hgrid.png
48-actions-kstars_horizon.png
48-actions-kstars_mw.png
48-actions-kstars_planets.png
48-actions-kstars_satellites.png
48-actions-kstars_stars.png
48-actions-kstars_supernovae.png
48-actions-kstars_ekos.png
48-actions-kstars_fitsviewer.png
48-actions-kstars_indi.png
48-actions-kstars_ekos_setup.png
48-actions-kstars_ekos_scheduler.png
48-actions-kstars_ekos_ccd.png
48-actions-kstars_ekos_mount.png
48-actions-kstars_ekos_focus.png
48-actions-kstars_ekos_align.png
48-actions-kstars_ekos_guide.png
48-actions-kstars_fov.png
64-actions-kstars_advanced.png
64-actions-kstars_catalog.png
64-actions-kstars_cbound.png
64-actions-kstars_clines.png
64-actions-kstars_cnames.png
64-actions-kstars_constellationart.png
64-actions-kstars_colors.png
64-actions-kstars_deepsky.png
64-actions-kstars_flag.png
64-actions-kstars_grid.png
64-actions-kstars_guides.png
64-actions-kstars_hgrid.png
64-actions-kstars_horizon.png
64-actions-kstars_mw.png
64-actions-kstars_planets.png
64-actions-kstars_satellites.png
64-actions-kstars_solarsystem.png
64-actions-kstars_stars.png
64-actions-kstars_supernovae.png
64-actions-kstars_xplanet.png
64-actions-kstars_ekos.png
64-actions-kstars_fitsviewer.png
64-actions-kstars_indi.png
64-actions-kstars_ekos_setup.png
64-actions-kstars_ekos_scheduler.png
64-actions-kstars_ekos_ccd.png
64-actions-kstars_ekos_mount.png
64-actions-kstars_ekos_focus.png
64-actions-kstars_ekos_align.png
64-actions-kstars_ekos_guide.png
64-actions-kstars_fov.png
22-actions-kstars_cbound.png
22-actions-kstars_clines.png
22-actions-kstars_cnames.png
22-actions-kstars_constellationart.png
22-actions-kstars_deepsky.png
22-actions-kstars_flag.png
22-actions-kstars_grid.png
22-actions-kstars_hgrid.png
22-actions-kstars_horizon.png
22-actions-kstars_mw.png
22-actions-kstars_planets.png
22-actions-kstars_satellites.png
22-actions-kstars_stars.png
22-actions-kstars_supernovae.png
22-actions-kstars_ekos.png
22-actions-kstars_indi.png
22-actions-kstars_fitsviewer.png
22-actions-kstars_ekos_setup.png
22-actions-kstars_ekos_scheduler.png
22-actions-kstars_ekos_ccd.png
22-actions-kstars_ekos_mount.png
22-actions-kstars_ekos_focus.png
22-actions-kstars_ekos_align.png
22-actions-kstars_ekos_guide.png
22-actions-kstars_fov.png
32-actions-kstars_clines.png
32-actions-kstars_cnames.png
32-actions-kstars_constellationart.png
32-actions-kstars_deepsky.png
32-actions-kstars_flag.png
32-actions-kstars_grid.png
32-actions-kstars_hgrid.png
32-actions-kstars_horizon.png
32-actions-kstars_mw.png
32-actions-kstars_planets.png
32-actions-kstars_satellites.png
32-actions-kstars_stars.png
32-actions-kstars_supernovae.png
32-actions-kstars_ekos.png
32-actions-kstars_fitsviewer.png
32-actions-kstars_indi.png
32-actions-kstars_ekos_setup.png
32-actions-kstars_ekos_scheduler.png
32-actions-kstars_ekos_ccd.png
32-actions-kstars_ekos_mount.png
32-actions-kstars_ekos_focus.png
32-actions-kstars_ekos_align.png
32-actions-kstars_ekos_guide.png
32-actions-kstars_fov.png
48-actions-kstars_clines.png
48-actions-kstars_cnames.png
48-actions-kstars_constellationart.png
48-actions-kstars_deepsky.png
48-actions-kstars_flag.png
48-actions-kstars_grid.png
48-actions-kstars_hgrid.png
48-actions-kstars_horizon.png
48-actions-kstars_mw.png
48-actions-kstars_planets.png
48-actions-kstars_satellites.png
48-actions-kstars_stars.png
48-actions-kstars_supernovae.png
48-actions-kstars_ekos.png
48-actions-kstars_fitsviewer.png
48-actions-kstars_indi.png
48-actions-kstars_ekos_setup.png
48-actions-kstars_ekos_scheduler.png
48-actions-kstars_ekos_ccd.png
48-actions-kstars_ekos_mount.png
48-actions-kstars_ekos_focus.png
48-actions-kstars_ekos_align.png
48-actions-kstars_ekos_guide.png
48-actions-kstars_fov.png
64-actions-kstars_advanced.png
64-actions-kstars_catalog.png
64-actions-kstars_cbound.png
64-actions-kstars_clines.png
64-actions-kstars_cnames.png
64-actions-kstars_constellationart.png
64-actions-kstars_colors.png
64-actions-kstars_deepsky.png
64-actions-kstars_flag.png
64-actions-kstars_grid.png
64-actions-kstars_guides.png
64-actions-kstars_hgrid.png
64-actions-kstars_horizon.png
64-actions-kstars_mw.png
64-actions-kstars_planets.png
64-actions-kstars_satellites.png
64-actions-kstars_solarsystem.png
64-actions-kstars_stars.png
64-actions-kstars_supernovae.png
64-actions-kstars_xplanet.png
64-actions-kstars_ekos.png
64-actions-kstars_fitsviewer.png
64-actions-kstars_indi.png
64-actions-kstars_ekos_setup.png
64-actions-kstars_ekos_scheduler.png
64-actions-kstars_ekos_ccd.png
64-actions-kstars_ekos_mount.png
64-actions-kstars_ekos_focus.png
64-actions-kstars_ekos_align.png
64-actions-kstars_ekos_guide.png
64-actions-kstars_fov.png
DESTINATION
${KDE_INSTALL_ICONDIR} THEME hicolor)
DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor
)
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