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 improvements #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pgsocks
Copy link

@pgsocks pgsocks commented Aug 25, 2022

The libraries needed to be split from the executable so they can be linked to. The source checks in WIN32 is defined to include Windows headers, but mingw doesn't set that when compiling in Linux. Also, CMake has new functions for setting flags, definitions, and properties.

@pgsocks pgsocks force-pushed the cmake-improvements branch 2 times, most recently from b137aa8 to e109ef6 Compare September 11, 2022 01:18
This CMake project only had one executable target, so there was no way
to compile it as a library. This commit splits the executable target
into two library targets using the [shared static starter][1] repo by
Alex Reinking for reference.

[1]: https://github.com/alexreinking/SharedStaticStarter
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.

1 participant