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

Cmake - pkgconfig and installation files #42

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jhidalgocarrio
Copy link

This PR does:

  1. option to have a dynamic library. A static library is by default as it was.
    cmake .. -DDSO_BUILD_STATIC_LIBRARY=OFF
  2. Generation of dso.pc for pkgconfig from dso.pc.in
  3. Installation of missing files and using cmake variables.

@@ -10,6 +10,9 @@ set(BUILD_TYPE Release)

set(EXECUTABLE_OUTPUT_PATH bin)
set(LIBRARY_OUTPUT_PATH lib)
set(INCLUDE_OUTPUT_PATH include/dso)
set(CMAKE_OUTPUT_PATH ${LIBRARY_OUTPUT_PATH}/cmake/dso)
Copy link
Collaborator

Choose a reason for hiding this comment

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

CMAKE_OUTPUT_PATH seems unused. Did you have plans to include a DSOConfig.cmake DSOConfigVersion.cmake as well?

Copy link
Author

Choose a reason for hiding this comment

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

In principle I don't plan to create those files right now but it can be done in a following step.
Are you suggesting to remove CMAKE_OUTPUT_PATH in order to merge this PR?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I was mostly just wondering why it is there, if it is unused.

Copy link
Author

Choose a reason for hiding this comment

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

Ah! Good question. I think is because I had in mind to create a FindDSO.cmake file (sorry it was some time ago).

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.

2 participants