2018-02-27 17:20:46 +01:00
|
|
|
cmake_minimum_required (VERSION 2.8.12)
|
2015-07-29 14:19:43 +02:00
|
|
|
|
|
|
|
|
project (cafVizExtensions)
|
|
|
|
|
|
2020-01-23 13:37:29 +01:00
|
|
|
# Unity Build
|
|
|
|
|
if (CAF_ENABLE_UNITY_BUILD)
|
|
|
|
|
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
|
|
|
|
set(CMAKE_UNITY_BUILD true)
|
|
|
|
|
endif()
|
|
|
|
|
|
2015-07-29 14:19:43 +02:00
|
|
|
# Open GL
|
|
|
|
|
find_package( OpenGL )
|
|
|
|
|
|
2019-02-08 11:28:14 +01:00
|
|
|
# Qt
|
2020-04-23 22:59:37 +02:00
|
|
|
find_package(Qt5 COMPONENTS REQUIRED Core Gui Widgets OpenGL)
|
|
|
|
|
set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL)
|
|
|
|
|
qt5_wrap_cpp(MOC_SOURCE_FILES ${MOC_HEADER_FILES} )
|
2018-11-27 08:40:24 +01:00
|
|
|
|
2015-07-29 14:19:43 +02:00
|
|
|
add_library( ${PROJECT_NAME}
|
2016-09-29 11:43:24 +02:00
|
|
|
cafDisplayCoordTransform.cpp
|
|
|
|
|
cafDisplayCoordTransform.h
|
2016-09-27 11:59:06 +02:00
|
|
|
cafBoxManipulatorPartManager.cpp
|
|
|
|
|
cafBoxManipulatorPartManager.h
|
|
|
|
|
cafBoxManipulatorGeometryGenerator.cpp
|
|
|
|
|
cafBoxManipulatorGeometryGenerator.h
|
2018-04-05 15:25:33 +02:00
|
|
|
cafTitledOverlayFrame.cpp
|
|
|
|
|
cafTitledOverlayFrame.h
|
2016-08-02 10:25:55 +02:00
|
|
|
cafCategoryLegend.cpp
|
|
|
|
|
cafCategoryLegend.h
|
2018-03-08 11:20:27 +01:00
|
|
|
cafOverlayScalarMapperLegend.h
|
|
|
|
|
cafOverlayScalarMapperLegend.cpp
|
2018-11-15 11:24:09 +01:00
|
|
|
cafOverlayScaleLegend.h
|
|
|
|
|
cafOverlayScaleLegend.cpp
|
2018-03-08 11:20:27 +01:00
|
|
|
cafInternalLegendRenderTools.h
|
|
|
|
|
cafInternalLegendRenderTools.cpp
|
2016-08-02 10:25:55 +02:00
|
|
|
cafCategoryMapper.cpp
|
|
|
|
|
cafCategoryMapper.h
|
2016-08-09 11:18:56 +02:00
|
|
|
cafFixedAtlasFont.h
|
|
|
|
|
cafFixedAtlasFont.cpp
|
2015-07-29 14:19:43 +02:00
|
|
|
cafTransparentWBRenderConfiguration.h
|
|
|
|
|
cafTransparentWBRenderConfiguration.cpp
|
2018-05-02 10:21:27 +02:00
|
|
|
cafLine.h
|
|
|
|
|
cafLine.inl
|
2015-07-29 14:19:43 +02:00
|
|
|
TranspWB_CombinationFrag.glsl
|
|
|
|
|
TranspWB_PartlyTranspPartsFrag.glsl
|
|
|
|
|
TranspWB_TransparentPartsFrag.glsl
|
2016-09-20 15:57:06 +02:00
|
|
|
|
|
|
|
|
cafHexGridIntersectionTools/cafHexGridIntersectionTools.h
|
|
|
|
|
cafHexGridIntersectionTools/cafHexGridIntersectionTools.cpp
|
2015-07-29 14:19:43 +02:00
|
|
|
)
|
2018-02-27 17:20:46 +01:00
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
|
PUBLIC
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries ( ${PROJECT_NAME}
|
|
|
|
|
LibCore
|
|
|
|
|
LibGeometry
|
|
|
|
|
LibViewing
|
|
|
|
|
LibRender
|
|
|
|
|
LibGuiQt
|
|
|
|
|
|
|
|
|
|
CommonCode
|
|
|
|
|
|
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
source_group("" FILES ${PROJECT_FILES})
|