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

Merge pull request #757 from bilke/projectdata-fix

Pass definition of OGS_BUILD_GUI to ApplicationLib
parents 68ef3b85 34c7735b
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,10 @@ target_link_libraries(ogs ...@@ -15,6 +15,10 @@ target_link_libraries(ogs
) )
if(OGS_BUILD_GUI)
target_link_libraries(ogs QtDataView VtkVis vtkInteractionStyle)
endif()
ADD_CATALYST_DEPENDENCY(ogs) ADD_CATALYST_DEPENDENCY(ogs)
if(OGS_USE_PETSC) if(OGS_USE_PETSC)
......
if(OGS_BUILD_GUI)
add_definitions(-DOGS_BUILD_GUI)
endif()
add_subdirectory(ApplicationsLib) add_subdirectory(ApplicationsLib)
if(OGS_BUILD_UTILS AND NOT IS_SUBPROJECT) if(OGS_BUILD_UTILS AND NOT IS_SUBPROJECT)
...@@ -5,7 +9,6 @@ if(OGS_BUILD_UTILS AND NOT IS_SUBPROJECT) ...@@ -5,7 +9,6 @@ if(OGS_BUILD_UTILS AND NOT IS_SUBPROJECT)
endif() # OGS_BUILD_UTILS AND NOT IS_SUBPROJECT endif() # OGS_BUILD_UTILS AND NOT IS_SUBPROJECT
if(OGS_BUILD_GUI) if(OGS_BUILD_GUI)
add_definitions(-DOGS_BUILD_GUI)
add_subdirectory(DataExplorer) add_subdirectory(DataExplorer)
endif() # OGS_BUILD_GUI endif() # OGS_BUILD_GUI
......
...@@ -75,6 +75,7 @@ if(OGS_BUILD_GUI) ...@@ -75,6 +75,7 @@ if(OGS_BUILD_GUI)
target_link_libraries(testrunner target_link_libraries(testrunner
QtDataView QtDataView
VtkVis VtkVis
vtkInteractionStyle
) )
endif() endif()
......
...@@ -31,7 +31,6 @@ TEST(FileIO, XmlGmlWriterReaderTest) ...@@ -31,7 +31,6 @@ TEST(FileIO, XmlGmlWriterReaderTest)
// Writer test // Writer test
std::string test_data_file(BaseLib::BuildInfo::source_path + "/Tests/FileIO/xmlgmltestdata.gml"); std::string test_data_file(BaseLib::BuildInfo::source_path + "/Tests/FileIO/xmlgmltestdata.gml");
ProjectData project;
GeoLib::GEOObjects geo_objects; GeoLib::GEOObjects geo_objects;
//setup test data //setup test data
......
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