2 # Computer Graphics Group, University of Siegen
3 # Written by Martin Lambers <martin.lambers@uni-siegen.de>
5 # Copying and distribution of this file, with or without modification, are
6 # permitted in any medium without royalty provided the copyright notice and this
7 # notice are preserved. This file is offered as-is, without any warranty.
9 cmake_minimum_required(VERSION 2.8)
11 set(CMAKE_INCLUDE_CURRENT_DIR ON)
13 if(CMAKE_COMPILER_IS_GNUCXX)
14 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++1y -Wall -Wextra")
18 find_package(Qt5Gui REQUIRED)
20 # The projection library
21 add_subdirectory(libproj)
24 include_directories(${CMAKE_SOURCE_DIR}/libproj)
26 add_executable(disk-square-precision-test disk-square-precision-test.cpp disk-square-common.hpp)
27 target_link_libraries(disk-square-precision-test libproj)
28 install(TARGETS disk-square-precision-test RUNTIME DESTINATION bin)
30 add_executable(disk-square-analyzer disk-square-analyzer.cpp disk-square-common.hpp pngvis.hpp pngvis.cpp)
31 target_link_libraries(disk-square-analyzer libproj Qt5::Gui)
32 install(TARGETS disk-square-analyzer RUNTIME DESTINATION bin)
34 add_executable(disk-square-plotter disk-square-plotter.cpp disk-square-common.hpp pdfplot.hpp pdfplot.cpp)
35 target_link_libraries(disk-square-plotter libproj Qt5::Gui)
36 install(TARGETS disk-square-plotter RUNTIME DESTINATION bin)
38 add_executable(sphere-map-precision-test sphere-map-precision-test.cpp sphere-map-common.hpp)
39 target_link_libraries(sphere-map-precision-test libproj)
40 install(TARGETS sphere-map-precision-test RUNTIME DESTINATION bin)
42 add_executable(sphere-map-analyzer sphere-map-analyzer.cpp sphere-map-common.hpp pngvis.hpp pngvis.cpp)
43 target_link_libraries(sphere-map-analyzer libproj Qt5::Gui)
44 install(TARGETS sphere-map-analyzer RUNTIME DESTINATION bin)
46 qt5_add_resources(SPHERE_MAP_PLOTTER_RESOURCES sphere-map-plotter.qrc)
47 add_executable(sphere-map-plotter sphere-map-plotter.cpp sphere-map-common.hpp
48 pdfplot.hpp pdfplot.cpp ${SPHERE_MAP_PLOTTER_RESOURCES})
49 target_link_libraries(sphere-map-plotter libproj Qt5::Gui)
50 install(TARGETS sphere-map-plotter RUNTIME DESTINATION bin)
53 #configure_file(land-polygons-z5.csv land-polygons-z5.csv COPYONLY)