mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
34 lines
987 B
CMake
34 lines
987 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(LibStructGrid_UnitTests)
|
|
|
|
# Compile flags should already be setup by caller
|
|
|
|
|
|
find_package(OpenGL)
|
|
|
|
include_directories(${LibCore_SOURCE_DIR})
|
|
include_directories(${LibIo_SOURCE_DIR})
|
|
include_directories(${LibGeometry_SOURCE_DIR})
|
|
include_directories(${LibRender_SOURCE_DIR})
|
|
include_directories(${LibStructGrid_SOURCE_DIR})
|
|
include_directories(${VizFramework_SOURCE_DIR}/ThirdParty)
|
|
|
|
set(CEE_LIBS LibStructGrid LibRender LibGeometry LibIo LibCore)
|
|
|
|
|
|
set(CEE_SOURCE_FILES
|
|
cvfRectilinearGrid-Test.cpp
|
|
../../ThirdParty/gtest/gtest-all.cpp
|
|
LibStructGrid_UnitTests.cpp
|
|
)
|
|
|
|
if (MSVC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.11))
|
|
# VS 2017 : Disable warnings from from gtest code, using deprecated code related to TR1
|
|
add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)
|
|
endif()
|
|
|
|
add_executable(${PROJECT_NAME} ${CEE_SOURCE_FILES})
|
|
target_link_libraries(${PROJECT_NAME} ${CEE_LIBS} ${OPENGL_LIBRARIES} ${CEE_PLATFORM_LIBS})
|
|
|