mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
#5370 Unity Build : Add config for AppFwk
This commit is contained in:
parent
70cbb7fe3f
commit
4e3a894464
@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (CommonCode)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# Open GL
|
||||
find_package( OpenGL )
|
||||
|
||||
|
@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafAnimControl)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# Qt
|
||||
set( MOC_HEADER_FILES
|
||||
cafFrameAnimationControl.h
|
||||
|
@ -2,6 +2,11 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafCommand)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# These headers need to go through Qt's MOC compiler
|
||||
set (MOC_HEADER_FILES
|
||||
|
@ -2,6 +2,11 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafCommandFeatures)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# These headers need to go through Qt's MOC compiler
|
||||
set (MOC_HEADER_FILES
|
||||
|
@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafPdmCvf)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# Qt
|
||||
if (CEE_USE_QT5)
|
||||
find_package(Qt5 COMPONENTS REQUIRED Core Gui Widgets)
|
||||
|
@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafProjectDataModel)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# Qt
|
||||
if (CEE_USE_QT5)
|
||||
find_package(Qt5 COMPONENTS REQUIRED Core Gui Widgets)
|
||||
|
@ -1,6 +1,13 @@
|
||||
cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafPdmCore)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# Qt
|
||||
option(CEE_USE_QT5 "Use Qt 5 instead of Qt 4" true)
|
||||
|
||||
|
@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafPdmUiCore)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# These headers need to go through Qt's MOC compiler
|
||||
set (MOC_HEADER_FILES
|
||||
cafPdmUiEditorHandle.h
|
||||
|
@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafPdmXml)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# Qt
|
||||
if (CEE_USE_QT5)
|
||||
find_package(Qt5 COMPONENTS REQUIRED Core Xml)
|
||||
|
@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafUserInterface)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
# Define this one to tell windows.h to not define min() and max() as macros
|
||||
add_definitions(-DNOMINMAX)
|
||||
|
@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafViewer)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# Qt
|
||||
|
||||
# These headers need to go through Qt's MOC compiler
|
||||
|
@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (cafVizExtensions)
|
||||
|
||||
# Unity Build
|
||||
if (CAF_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
# Open GL
|
||||
find_package( OpenGL )
|
||||
|
||||
|
6
ThirdParty/Qwt/src/CMakeLists.txt
vendored
6
ThirdParty/Qwt/src/CMakeLists.txt
vendored
@ -2,6 +2,12 @@ cmake_minimum_required(VERSION 2.8.12)
|
||||
|
||||
project(Qwt)
|
||||
|
||||
# Unity Build
|
||||
if (RESINSIGHT_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
||||
set(CMAKE_UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
# Disable some annoying warnings (relative to warning level 3)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267")
|
||||
|
Loading…
Reference in New Issue
Block a user