mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
29 lines
895 B
CMake
29 lines
895 B
CMake
cmake_minimum_required (VERSION 2.8)
|
|
|
|
project ( OdbReader_UnitTests )
|
|
|
|
set(RI_VIZ_FWK_ROOT ../../../Fwk/main/VizFwk CACHE PATH "Path to VizFwk")
|
|
set(RI_GTEST_ROOT ../../../ThirdParty CACHE PATH "Path to forlder containing gtest folder")
|
|
|
|
include(${RI_VIZ_FWK_ROOT}/CMake/Utils/ceeDetermineCompilerFlags.cmake)
|
|
|
|
add_subdirectory(${RI_VIZ_FWK_ROOT}/LibCore buildVizFwk)
|
|
add_subdirectory(../GeoMechDataModel buildGeoMechDataModel)
|
|
add_subdirectory(../OdbReader buildOdbReader)
|
|
|
|
|
|
include_directories(${RI_VIZ_FWK_ROOT}/LibCore)
|
|
include_directories(../GeoMechDataModel)
|
|
include_directories(../OdbReader)
|
|
include_directories(${RI_GTEST_ROOT})
|
|
|
|
set( UNIT_TEST_CPP_SOURCES
|
|
main.cpp
|
|
RifOdbReader-Test.cpp
|
|
${RI_GTEST_ROOT}/gtest/gtest-all.cc
|
|
)
|
|
|
|
add_executable( ${PROJECT_NAME} ${UNIT_TEST_CPP_SOURCES} )
|
|
target_link_libraries( ${PROJECT_NAME} RifOdbReader)
|
|
|
|
include(../OdbReader/OdbSetup.cmake) |