Revision 12ec7ce0cc0c453cb1d4bfdea8da9b4fabbff7b0 authored by Dmitri Naumov on 06 July 2021, 10:18:49 UTC, committed by Dmitri Naumov on 06 July 2021, 21:16:01 UTC
1 parent 34ced08
CMakeLists.txt
get_source_files(SOURCES)
append_source_files(SOURCES Gmsh)
append_source_files(SOURCES Legacy)
if(NOT OGS_BUILD_GUI)
list(REMOVE_ITEM SOURCES SHPInterface.h SHPInterface.cpp)
endif()
# GO2OGS
get_source_files(SOURCES_GO2OGS GocadIO)
set(SOURCES ${SOURCES} ${SOURCES_GO2OGS})
if(OGS_BUILD_GUI)
append_source_files(SOURCES XmlIO/Qt)
append_source_files(SOURCES FEFLOW)
endif()
if(OGS_BUILD_SWMM)
get_source_files(SOURCES_SWMM SWMM)
set(SOURCES ${SOURCES} ${SOURCES_SWMM})
endif()
# Create the library
ogs_add_library(ApplicationsFileIO ${SOURCES})
target_link_libraries(
ApplicationsFileIO
PUBLIC BaseLib
DataHolderLib
GeoLib
MathLib
# Needed for the XmlPrjInterface, which links the DE/Base/OGSError.h.
$<$<BOOL:${OGS_BUILD_GUI}>:QtBase>
$<$<TARGET_EXISTS:shp>:shp>
$<$<TARGET_EXISTS:SwmmInterface>:SwmmInterface>
PRIVATE MeshLib GitInfoLib std::filesystem
)
configure_file(
XmlIO/OpenGeoSysCND.xsd ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/OpenGeoSysCND.xsd
COPYONLY
)
configure_file(
XmlIO/OpenGeoSysNum.xsd ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/OpenGeoSysNum.xsd
COPYONLY
)
configure_file(
XmlIO/OpenGeoSysProject.xsd
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/OpenGeoSysProject.xsd COPYONLY
)
install(FILES XmlIO/OpenGeoSysCND.xsd XmlIO/OpenGeoSysNum.xsd
XmlIO/OpenGeoSysProject.xsd DESTINATION bin
)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...