mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5370 Unity Build : Add config for CeeViz
This commit is contained in:
parent
bff2abe85b
commit
70cbb7fe3f
@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(LibCore)
|
||||
|
||||
# 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}")
|
||||
|
@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
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}")
|
||||
|
@ -2,6 +2,12 @@ cmake_minimum_required(VERSION 2.8.12)
|
||||
|
||||
project(LibGuiQt)
|
||||
|
||||
# CMake Unity Build
|
||||
if (CVF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# We're getting too much trouble from Qt using strict
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CEE_BASE_CXX_FLAGS}")
|
||||
|
||||
@ -60,8 +66,8 @@ target_link_libraries ( ${PROJECT_NAME}
|
||||
set(PROJECT_FILES ${CEE_HEADER_FILES} ${CEE_SOURCE_FILES})
|
||||
source_group("" FILES ${PROJECT_FILES})
|
||||
|
||||
#if (COMMAND ri_apply_cotire)
|
||||
# set_source_files_properties (cvfqtOpenGLWidget.cpp PROPERTIES COTIRE_EXCLUDED TRUE)
|
||||
# set_source_files_properties (cvfqtOpenGLContext.cpp PROPERTIES COTIRE_EXCLUDED TRUE)
|
||||
# ri_apply_cotire()
|
||||
#endif()
|
||||
# Unity Build
|
||||
if (CMAKE_UNITY_BUILD)
|
||||
set_source_files_properties (cvfqtOpenGLWidget.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE)
|
||||
set_source_files_properties (cvfqtOpenGLContext.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE)
|
||||
endif()
|
||||
|
@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(LibRender)
|
||||
|
||||
# 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}")
|
||||
@ -191,11 +196,8 @@ target_link_libraries ( ${PROJECT_NAME}
|
||||
set(PROJECT_FILES ${CEE_HEADER_FILES} ${CEE_SOURCE_FILES})
|
||||
source_group("" FILES ${PROJECT_FILES})
|
||||
|
||||
#if (COMMAND ri_apply_cotire)
|
||||
# set_source_files_properties (cvfOpenGLCapabilities.cpp PROPERTIES COTIRE_EXCLUDED TRUE)
|
||||
# set_source_files_properties (cvfOpenGLContext.cpp PROPERTIES COTIRE_EXCLUDED TRUE)
|
||||
# set_source_files_properties (cvfOpenGLContextGroup.cpp PROPERTIES COTIRE_EXCLUDED TRUE)
|
||||
# set_source_files_properties (cvfOpenGLResourceManager.cpp PROPERTIES COTIRE_EXCLUDED TRUE)
|
||||
# set_source_files_properties (cvfOpenGL.cpp PROPERTIES COTIRE_EXCLUDED TRUE)
|
||||
# ri_apply_cotire()
|
||||
#endif()
|
||||
# Unity Build
|
||||
if (CMAKE_UNITY_BUILD)
|
||||
set_source_files_properties (cvfOpenGL.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE)
|
||||
set_source_files_properties (cvfOpenGLContextGroup.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE)
|
||||
endif()
|
||||
|
@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(LibViewing)
|
||||
|
||||
# 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}")
|
||||
|
Loading…
Reference in New Issue
Block a user