diff --git a/Applications/Utils/GeoTools/CMakeLists.txt b/Applications/Utils/GeoTools/CMakeLists.txt index 12f3b14a6fa83e6857d4a345a7c8c2d3dd9cb93c..f86e271cf67a9c2d8b8fb049de363f167e0e1af8 100644 --- a/Applications/Utils/GeoTools/CMakeLists.txt +++ b/Applications/Utils/GeoTools/CMakeLists.txt @@ -1,12 +1,8 @@ -if(NOT OGS_BUILD_GUI) - return() -endif() - set(TOOLS MoveGeometry TriangulatePolyline) foreach(tool ${TOOLS}) ogs_add_executable(${tool} ${tool}.cpp) target_link_libraries( - ${tool} GeoLib GitInfoLib ApplicationsFileIO tclap Qt5::Core + ${tool} GeoLib GitInfoLib ApplicationsFileIO tclap ) endforeach() install(TARGETS ${TOOLS} RUNTIME DESTINATION bin) diff --git a/Applications/Utils/GeoTools/MoveGeometry.cpp b/Applications/Utils/GeoTools/MoveGeometry.cpp index c0e46cd3860c3c5da809b61d1d978791f3a914b1..9c1e05b94b3795e540d201d22c5030237a014630 100644 --- a/Applications/Utils/GeoTools/MoveGeometry.cpp +++ b/Applications/Utils/GeoTools/MoveGeometry.cpp @@ -14,16 +14,12 @@ // ThirdParty #include <tclap/CmdLine.h> -#include <QCoreApplication> - #include "GeoLib/GEOObjects.h" -#include "GeoLib/IO/XmlIO/Qt/XmlGmlInterface.h" +#include "GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.h" #include "InfoLib/GitInfo.h" int main(int argc, char* argv[]) { - QCoreApplication app(argc, argv); - TCLAP::CmdLine cmd( "Moves the points of a geometry by a given displacement vector\n\n" "OpenGeoSys-6 software, version " + @@ -50,7 +46,7 @@ int main(int argc, char* argv[]) cmd.parse(argc, argv); GeoLib::GEOObjects geo_objects; - GeoLib::IO::XmlGmlInterface xml(geo_objects); + GeoLib::IO::BoostXmlGmlInterface xml(geo_objects); try { if (!xml.readFile(geo_input_arg.getValue())) diff --git a/Applications/Utils/GeoTools/TriangulatePolyline.cpp b/Applications/Utils/GeoTools/TriangulatePolyline.cpp index 191f0cb55201f231aa411e7b86800fb83908c005..787722ee05094de2e7239d924a854c4a722dc88d 100644 --- a/Applications/Utils/GeoTools/TriangulatePolyline.cpp +++ b/Applications/Utils/GeoTools/TriangulatePolyline.cpp @@ -13,13 +13,12 @@ #include <tclap/CmdLine.h> -#include <QCoreApplication> #include <string> #include "Applications/FileIO/Legacy/createSurface.h" #include "GeoLib/AnalyticalGeometry.h" #include "GeoLib/GEOObjects.h" -#include "GeoLib/IO/XmlIO/Qt/XmlGmlInterface.h" +#include "GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.h" #include "GeoLib/Polyline.h" #include "InfoLib/GitInfo.h" @@ -34,8 +33,6 @@ std::string output_question() int main(int argc, char* argv[]) { - QCoreApplication app(argc, argv, false); - TCLAP::CmdLine cmd( "Triangulates the specified polyline in the given geometry file.\n\n" "OpenGeoSys-6 software, version " + @@ -63,7 +60,7 @@ int main(int argc, char* argv[]) std::string const& polyline_name(name_arg.getValue()); GeoLib::GEOObjects geo_objects; - GeoLib::IO::XmlGmlInterface xml(geo_objects); + GeoLib::IO::BoostXmlGmlInterface xml(geo_objects); try { if (!xml.readFile(file_name))