Skip to content
Snippets Groups Projects
Commit 590b7788 authored by Tom Fischer's avatar Tom Fischer
Browse files

Merge pull request #761 from bilke/projectdata-test

Added test for instantiating ProjectData
parents aa7467c3 22e91f44
No related branches found
No related tags found
No related merge requests found
if(OGS_BUILD_GUI)
add_definitions(-DOGS_BUILD_GUI)
endif()
add_subdirectory(ApplicationsLib)
if(OGS_BUILD_UTILS AND NOT IS_SUBPROJECT)
......@@ -12,7 +8,6 @@ if(OGS_BUILD_GUI)
add_subdirectory(DataExplorer)
endif() # OGS_BUILD_GUI
if(OGS_BUILD_CLI)
add_subdirectory(CLI)
endif() # OGS_BUILD_CLI
......@@ -52,6 +52,9 @@ option(OGS_DONT_USE_QT "Disables all Qt specific code." OFF)
option(OGS_BUILD_CLI "Should the OGS simulator be built?" ON)
option(OGS_BUILD_TESTS "Should the test executables be built?" ON)
option(OGS_BUILD_GUI "Should the Data Explorer be built?" OFF)
if(OGS_BUILD_GUI)
add_definitions(-DOGS_BUILD_GUI)
endif()
option(OGS_BUILD_UTILS "Should the utilities programms be built?" OFF)
option(OGS_NO_EXTERNAL_LIBS "Builds OGS without any external dependencies." OFF)
......
/**
* \file TestProjectData.cpp
* \date 2015-07-13
*
* \copyright
* Copyright (c) 2012-2015, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*
*/
#include "gtest/gtest.h"
#include "Applications/ApplicationsLib/ProjectData.h"
TEST(ApplicationsLib, ProjectData)
{
ProjectData project;
#ifdef OGS_BUILD_GUI
GEOModels* geo_objects = dynamic_cast<GEOModels*>(project.getGEOObjects());
#else
GeoLib::GEOObjects *geo_objects = project.getGEOObjects();
#endif
ASSERT_TRUE(geo_objects);
}
......@@ -5,6 +5,7 @@ if(MSVC)
endif()
APPEND_SOURCE_FILES(TEST_SOURCES)
APPEND_SOURCE_FILES(TEST_SOURCES ApplicationsLib)
APPEND_SOURCE_FILES(TEST_SOURCES AssemblerLib)
APPEND_SOURCE_FILES(TEST_SOURCES BaseLib)
APPEND_SOURCE_FILES(TEST_SOURCES GeoLib)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment