mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
#2536 Build System : Remove obsolete includes and update depending includes
This commit is contained in:
parent
3b63c8d433
commit
233df05f68
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (ApplicationCode)
|
||||
|
||||
@ -15,28 +15,9 @@ if (MSVC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.11))
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
${cafPdmCore_SOURCE_DIR}
|
||||
${cafPdmUiCore_SOURCE_DIR}
|
||||
${cafPdmXml_SOURCE_DIR}
|
||||
${cafProjectDataModel_SOURCE_DIR}
|
||||
|
||||
${cafCommand_SOURCE_DIR}
|
||||
${cafViewer_SOURCE_DIR}
|
||||
${cafAnimControl_SOURCE_DIR}
|
||||
${cafUserInterface_SOURCE_DIR}
|
||||
${cafPdmCvf_SOURCE_DIR}
|
||||
${CommonCode_SOURCE_DIR}
|
||||
${cafVizExtensions_SOURCE_DIR}
|
||||
${cafTensor_SOURCE_DIR}
|
||||
|
||||
# required for compilation of gtest, should be refactored
|
||||
${ResInsight_SOURCE_DIR}/ThirdParty
|
||||
${ResInsight_SOURCE_DIR}/ThirdParty/NRLib/nrlib/well
|
||||
${ResInsight_SOURCE_DIR}/ThirdParty/Qwt/src
|
||||
|
||||
${boost-Subset_SOURCE_DIR}
|
||||
${custom-opm-flowdiagnostics_SOURCE_DIR}/opm-flowdiagnostics/
|
||||
${custom-opm-flowdiag-app_SOURCE_DIR}/opm-flowdiagnostics-applications/
|
||||
${custom-opm-flowdiag-app_SOURCE_DIR}/opmCore
|
||||
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Adm
|
||||
|
@ -40,6 +40,16 @@ target_include_directories(${PROJECT_NAME}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries( ${PROJECT_NAME} LibCore cafTensor ResultStatisticsCache RifOdbReader)
|
||||
target_link_libraries( ${PROJECT_NAME}
|
||||
LibCore
|
||||
|
||||
cafPdmCvf
|
||||
cafTensor
|
||||
cafUserInterface
|
||||
CommonCode
|
||||
|
||||
ResultStatisticsCache
|
||||
RifOdbReader
|
||||
)
|
||||
|
||||
source_group("" FILES ${PROJECT_FILES})
|
||||
|
@ -36,7 +36,6 @@ endif(MSVC)
|
||||
|
||||
include_directories(
|
||||
${RESINSIGHT_ODB_API_DIR}/include
|
||||
${RigGeoMechDataModel_SOURCE_DIR}
|
||||
${LibCore_SOURCE_DIR}
|
||||
)
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "nightcharts/nightcharts.h"
|
||||
#include "nightcharts.h"
|
||||
|
||||
#include "cafPdmPointer.h"
|
||||
|
||||
|
@ -43,7 +43,7 @@ add_library( ${PROJECT_NAME}
|
||||
)
|
||||
|
||||
target_link_libraries ( ${PROJECT_NAME}
|
||||
cafUserInterface
|
||||
cafUserInterface cafPdmCvf CommonCode
|
||||
)
|
||||
|
||||
source_group("" FILES ${PROJECT_FILES})
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
include (CheckCSourceCompiles)
|
||||
project (ResInsight)
|
||||
|
@ -54,6 +54,9 @@ target_link_libraries ( ${PROJECT_NAME}
|
||||
LibViewing
|
||||
LibRender
|
||||
LibGuiQt
|
||||
|
||||
cafAnimControl
|
||||
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
|
||||
|
@ -11,7 +11,6 @@ include_directories(
|
||||
${LibGuiQt_SOURCE_DIR}
|
||||
${LibRender_SOURCE_DIR}
|
||||
${LibViewing_SOURCE_DIR}
|
||||
${CommonCode_SOURCE_DIR}
|
||||
)
|
||||
|
||||
add_library( ${PROJECT_NAME}
|
||||
|
@ -4,8 +4,6 @@ project ( well_UnitTests )
|
||||
|
||||
|
||||
include_directories (
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/..
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
||||
)
|
||||
|
||||
|
@ -33,3 +33,8 @@ target_link_libraries(custom-opm-flowdiag-app
|
||||
if (MSVC)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4190 /wd4267")
|
||||
endif()
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/opm-flowdiagnostics-applications
|
||||
)
|
||||
|
@ -24,3 +24,8 @@ add_library(${PROJECT_NAME}
|
||||
if (MSVC)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4267")
|
||||
endif()
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/opm-flowdiagnostics
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user