Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileIO modularization: first part #1182

Merged
merged 18 commits into from
May 10, 2016

Conversation

TomFischer
Copy link
Member

In order to remove dependencies the PR is the first step of modularization, see issue https://github.com/ufz/ogs/issues/1164. The PR is mainly moving files and change namespaces. There isn't any new line of code except the CMakeLists.txt's.

if(QT4_FOUND)
target_link_libraries(BaseLib PUBLIC Qt4::QtXml Qt4::QtXmlPatterns)
if(WIN32 AND CMAKE_CROSSCOMPILING)
find_package(OpenSSL)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this to Find.cmake?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put this in scripts/cmake/Find.cmake:

find_package(OpenSSL)

And this into the CMakeLists.txt-file:

if(WIN32 AND CMAKE_CROSSCOMPILING AND OPENSSL_FOUND)
    target_link_libraries(BaseLib PUBLIC Qt4::QtNetwork ${OPENSSL_LIBRARIES} ws2_32)
endif()

@TomFischer TomFischer force-pushed the MoveGLIInterfaceToGeoLib branch 3 times, most recently from b6191f2 to bb4a666 Compare May 3, 2016 12:05
@norihiro-w
Copy link
Collaborator

looks ok. please resolve conflicts

if(QT4_FOUND)
target_link_libraries(BaseLib PUBLIC Qt4::QtXml Qt4::QtXmlPatterns)
if(WIN32 AND CMAKE_CROSSCOMPILING AND OPENSSL_FOUND)
target_link_libraries(BaseLib PUBLIC Qt4::QtNetwork ${OPENSSL_LIBRARIES} ws2_32)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The explicit PUBLIC and INTERFACE keywords in all of the target_link_libraries are removed now. The default behaviour (transitive) is sufficient, no need for finer grained dependencies for now.

@ogsbot
Copy link
Member

ogsbot commented May 4, 2016

Jenkins: OGS-6/Gui/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Win-PRs/1678/

@ogsbot
Copy link
Member

ogsbot commented May 4, 2016

Jenkins: OGS-6/Gui/Gui-Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Gui-Linux-PRs/1795/

@ogsbot
Copy link
Member

ogsbot commented May 4, 2016

Jenkins: OGS-6/Gui/Mac-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Mac-PRs/1690/

@ogsbot
Copy link
Member

ogsbot commented May 4, 2016

Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/1828/

@ogsbot
Copy link
Member

ogsbot commented May 4, 2016

Jenkins: OGS-6/Linux-PRs-dynamic failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs-dynamic/50/

@wenqing
Copy link
Member

wenqing commented May 4, 2016

👍

@ogsbot
Copy link
Member

ogsbot commented May 4, 2016

Jenkins: OGS-6/Linux-PRs-dynamic failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs-dynamic/51/

@ogsbot
Copy link
Member

ogsbot commented May 9, 2016

Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/1831/

@TomFischer TomFischer force-pushed the MoveGLIInterfaceToGeoLib branch 2 times, most recently from 2e3a8df to d273de8 Compare May 9, 2016 12:23
@ogsbot
Copy link
Member

ogsbot commented May 9, 2016

Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/1834/

@endJunction
Copy link
Member

@TomFischer there is a small addendum in your PRs

+ Update the namespace from FileIO to IO.
+ move Legacy/OGSIOVer4* to GeoLib/IO.
Move parts from FileIO to GeoLib/IO and BaseLib/IO.
In order to make OGS more modular:
- The {read/write}Mesh{From/To}File.{h,cpp} are moved from FileIO to MeshLib/IO.
- The FileIO/Legacy folder was moved to MeshLib/IO/Legacy.
- Include paths are changed according the changes above.
@TomFischer TomFischer merged commit e67aac0 into ufz:master May 10, 2016
@TomFischer TomFischer deleted the MoveGLIInterfaceToGeoLib branch May 10, 2016 07:02
@ogsbot
Copy link
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants