mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
* Refactor to deprecate existing QGLWidget derived widget Renamed cvfqt::OpenGLWidget to cvfqt::GLWidget_deprecated Renamed cvfqt::CvfBoundQGLContext to cvfqt::CvfBoundQGLContext_deprecated Renamed cvfqt::OpenGLContext to cvfqt::OpenGLContext_QGLContextAdapter_deprecated Added cvf::OpenGLUtils * Marked existing QtMinimal and QtMultiView as deprecated * Additional deprecated renaming * Added missing type * Added missing include * Fixes to get snippets up and running before introducing new OpenGL widgets * Added class for OpenGLInfo * Refactored cvf::OpenGLContext and cvf::OpenGLContextGroup, and added first cut impl of cvfqt::GLWidget and cvfqt::OpenGLWidget * Removed unused TriggerTBBCopy.txt * Initial support for compilation on Qt6 * Added QtMinimal and QtMinimal_GLWidget * Refactored SnippetRunner to handle utilize cvfqt::OpenGLWidget * Removed unused code * Fixes and workarounds from compiling on linux * Fixes by clang-format (#11056) Co-authored-by: sigurdp <sigurdp@users.noreply.github.com> * Added QTMultiView test app based on cvfqt::OpenGLWidget * Removed includes of QOpenGLFunctions * Modifications for compile with Qt6 * Added test bench for cvfqt::OpenGLWidget * Minor fixes * Force to use Qt5 * Fixes by cmake-format --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: sigurdp <sigurdp@users.noreply.github.com>
76 lines
1.6 KiB
CMake
76 lines
1.6 KiB
CMake
project(LibGeometry)
|
|
|
|
# CMake Unity Build
|
|
if (CVF_ENABLE_UNITY_BUILD)
|
|
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
|
set(CMAKE_UNITY_BUILD true)
|
|
endif()
|
|
|
|
# Use our strict compile flags
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CEE_STRICT_CXX_FLAGS}")
|
|
|
|
# For now, disable warning about unknown pragmas locally here (due to usage of OpenMP)
|
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas")
|
|
endif()
|
|
|
|
|
|
set(CEE_HEADER_FILES
|
|
cvfArrowGenerator.h
|
|
cvfBoundingBox.h
|
|
cvfBoundingBoxTree.h
|
|
cvfBoxGenerator.h
|
|
cvfEdgeKey.h
|
|
cvfFrustum.h
|
|
cvfGeometryBuilder.h
|
|
cvfGeometryBuilderFaceList.h
|
|
cvfGeometryBuilderTriangles.h
|
|
cvfGeometryUtils.h
|
|
cvfLibGeometry.h
|
|
cvfMeshEdgeExtractor.h
|
|
cvfOutlineEdgeExtractor.h
|
|
cvfPatchGenerator.h
|
|
cvfPrimitiveTests.h
|
|
cvfRay.h
|
|
cvfTriangleMeshEdgeExtractor.h
|
|
cvfTriangleVertexSplitter.h
|
|
cvfVertexCompactor.h
|
|
cvfVertexWelder.h
|
|
)
|
|
|
|
set(CEE_SOURCE_FILES
|
|
cvfArrowGenerator.cpp
|
|
cvfBoundingBox.cpp
|
|
cvfBoundingBoxTree.cpp
|
|
cvfBoxGenerator.cpp
|
|
cvfFrustum.cpp
|
|
cvfEdgeKey.cpp
|
|
cvfGeometryBuilder.cpp
|
|
cvfGeometryBuilderFaceList.cpp
|
|
cvfGeometryBuilderTriangles.cpp
|
|
cvfGeometryUtils.cpp
|
|
cvfMeshEdgeExtractor.cpp
|
|
cvfOutlineEdgeExtractor.cpp
|
|
cvfPatchGenerator.cpp
|
|
cvfPrimitiveTests.cpp
|
|
cvfRay.cpp
|
|
cvfTriangleMeshEdgeExtractor.cpp
|
|
cvfTriangleVertexSplitter.cpp
|
|
cvfVertexCompactor.cpp
|
|
cvfVertexWelder.cpp
|
|
)
|
|
|
|
add_library(${PROJECT_NAME} ${CEE_HEADER_FILES} ${CEE_SOURCE_FILES})
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
target_link_libraries ( ${PROJECT_NAME}
|
|
LibCore
|
|
)
|
|
|
|
set(PROJECT_FILES ${CEE_HEADER_FILES} ${CEE_SOURCE_FILES})
|
|
source_group("" FILES ${PROJECT_FILES})
|