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

Project structure rearranged. #20

Closed
wants to merge 4 commits into from
Closed

Conversation

5cript
Copy link
Contributor

@5cript 5cript commented May 2, 2022

Sorry, I think I took out too much last PR with the PROMISE_BUILD_EXAMPLES option.
I did go a bit further and rearranged the structure slightly.
Now I can do the following

include(FetchContent)
FetchContent_Declare(
    promise
    GIT_REPOSITORY https://github.com/xhawk18/promise-cpp.git
    GIT_TAG        e41e25c9b078141ff2e499cd6a2678386b67311e
)
FetchContent_MakeAvailable(promise)

add_executable(myProgram ...)
target_link_library(myProgram PRIVATE promise)
#include <promise-cpp/promise.hpp>
// Notice that these are now directly available, and can be used when boost is found:
#include <promise-cpp/add_ons/asio/timer.hpp>

int main()
{
  setTimeout(...)
}

@5cript
Copy link
Contributor Author

5cript commented May 2, 2022

I cannot test the qt dependent target, but If I did it right using the QT part is equally easy with:
target_link_library(myProgram PRIVATE promise_qt)

@xhawk18 xhawk18 closed this Jun 11, 2022
@xhawk18 xhawk18 reopened this Jun 11, 2022
@xhawk18 xhawk18 closed this Jun 11, 2022
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.

None yet

2 participants