Skip to content
Snippets Groups Projects
Commit 22e91f44 authored by Lars Bilke's avatar Lars Bilke
Browse files

Fixed project data test.

Successfully runs both with and without gui.
parent f1a29769
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)
......
......@@ -17,6 +17,11 @@
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);
}
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