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

Restructure C++ CMake build targets #45

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

Conversation

tbeu
Copy link

@tbeu tbeu commented Feb 7, 2025

As briefly mentioned at the #OOPMUC this PR restructures the CMake build targets to have a library and its corresponding approval test which is more realistic than having just one test target. It's now similar to the C language variant.

* Update to some more realistic build target structure with having a (static) library and a test target linking against it.
* Remove the superfluous main.cpp.
* Set language to CXX.
* Move enable_testing to top-level CMakeLists.txt such that the RUN_TESTS target is built for Visual Studio.
* Set USE_FOLDERS propertry such that target ALL_BUILD, RUN_TESTS and ZERO_CHECK are grouped for Visual Studio.
* Set WORKING_DIRECTORY such that the RUN_TESTS target works successfully.
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