mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix Linux build of caf unit tests
This commit is contained in:
parent
8cd2d37b92
commit
b06097862f
@ -6,7 +6,7 @@ find_package(Qt5Core CONFIG QUIET)
|
|||||||
if (Qt5Core_FOUND)
|
if (Qt5Core_FOUND)
|
||||||
find_package(Qt5 CONFIG REQUIRED Core Gui Widgets)
|
find_package(Qt5 CONFIG REQUIRED Core Gui Widgets)
|
||||||
else()
|
else()
|
||||||
find_package(Qt4 COMPONENTS QtCore QtGui QtMain REQUIRED)
|
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
|
||||||
include(${QT_USE_FILE})
|
include(${QT_USE_FILE})
|
||||||
endif(Qt5Core_FOUND)
|
endif(Qt5Core_FOUND)
|
||||||
|
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
cmake_minimum_required (VERSION 2.8.12)
|
cmake_minimum_required (VERSION 2.8.12)
|
||||||
|
|
||||||
|
project ( cafPdmXml_UnitTests )
|
||||||
|
|
||||||
find_package(Qt5Core CONFIG QUIET)
|
find_package(Qt5Core CONFIG QUIET)
|
||||||
if (Qt5Core_FOUND)
|
if (Qt5Core_FOUND)
|
||||||
find_package(Qt5 CONFIG REQUIRED Core Xml)
|
find_package(Qt5 CONFIG REQUIRED Core Xml)
|
||||||
else()
|
else()
|
||||||
find_package(Qt4 COMPONENTS QtCore QtXml REQUIRED)
|
find_package(Qt4 COMPONENTS QtCore QtXml REQUIRED)
|
||||||
include(${QT_USE_FILE})
|
include(${QT_USE_FILE})
|
||||||
endif(Qt5Core_FOUND)
|
endif(Qt5Core_FOUND)
|
||||||
|
|
||||||
|
|
||||||
project ( cafPdmXml_UnitTests )
|
|
||||||
|
|
||||||
include_directories (
|
include_directories (
|
||||||
${CMAKE_CURRENT_SOURCE_DIR} # required for gtest-all.cpp
|
${CMAKE_CURRENT_SOURCE_DIR} # required for gtest-all.cpp
|
||||||
)
|
)
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
cmake_minimum_required (VERSION 2.8.12)
|
cmake_minimum_required (VERSION 2.8.12)
|
||||||
|
|
||||||
|
project ( cafProjectDataModel_UnitTests )
|
||||||
|
|
||||||
find_package(Qt5Core CONFIG QUIET)
|
find_package(Qt5Core CONFIG QUIET)
|
||||||
if (Qt5Core_FOUND)
|
if (Qt5Core_FOUND)
|
||||||
find_package(Qt5 CONFIG REQUIRED Core Xml)
|
find_package(Qt5 CONFIG REQUIRED Core Xml)
|
||||||
else()
|
else()
|
||||||
find_package(Qt4 COMPONENTS QtCore QtXml REQUIRED)
|
find_package(Qt4 COMPONENTS QtCore QtXml REQUIRED)
|
||||||
include(${QT_USE_FILE})
|
include(${QT_USE_FILE})
|
||||||
endif(Qt5Core_FOUND)
|
endif(Qt5Core_FOUND)
|
||||||
|
|
||||||
project ( cafProjectDataModel_UnitTests )
|
|
||||||
|
|
||||||
include_directories (
|
include_directories (
|
||||||
${CMAKE_CURRENT_SOURCE_DIR} # required for gtest-all.cpp
|
${CMAKE_CURRENT_SOURCE_DIR} # required for gtest-all.cpp
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user