https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 051bf79d3b89c37ba34aba5db60e2d560f421ccb authored by Dmitry Yu. Naumov on 13 September 2022, 21:27:51 UTC
Merge branch 'fix_whitespaces_only_lines_in_xdmf' into 'master'
Tip revision: 051bf79
CMakeLists.txt
# Source files
get_source_files(SOURCES)

append_source_files(SOURCES IO)

append_source_files(SOURCES IO/XmlIO/Boost)

if(OGS_BUILD_GUI)
    append_source_files(SOURCES IO/XmlIO/Qt)
endif()

# Create the library
ogs_add_library(GeoLib ${SOURCES})

target_link_libraries(
    GeoLib
    PUBLIC BaseLib Eigen3::Eigen MathLib $<$<BOOL:${OGS_BUILD_GUI}>:rapidxml>
           $<$<BOOL:${OGS_BUILD_GUI}>:Qt5::Xml>
           $<$<BOOL:${OGS_BUILD_GUI}>:Qt5::XmlPatterns>
    PRIVATE range-v3 tet
)

foreach(xsd OpenGeoSysGLI.xsd OpenGeoSysSTN.xsd)
    # cmake-lint: disable=E1126
    file(COPY_FILE IO/XmlIO/${xsd} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${xsd}
         ONLY_IF_DIFFERENT
    )
    install(FILES IO/XmlIO/${xsd} DESTINATION bin)
endforeach()
back to top