[IDE] migrate test
folder to CMake configuration
#824
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed via discord, here's a proposed PR to migrate test.
Some notes
DEBUGINFOD
enabled by default on linux platforms like in theMakeFile
CmakeLists.txt
to get theTracyClient
target - that's a bit unorthodox but seems to work wellpthread
but IIRC some other Linux need it, so I kept it explicit for everyone-ldl
link option seems implicitly added by CMake, so I don't mention it explictlystd=
option fromgnu++11
tognu++20
to align with other projectsCMake
works, the-Wall -g3 -fmerge-constants
options are not propagated anymore toTracyClient.cpp
(because it's a different library) - people will have to add them explicitly for debugging if needed.For comparison, here are the new compilation lines (I had disabled DEBUGINFOD for this run)
and the compilation lines of the makefile on master
Additional changes
I also added a safeguard around the use of the image to detect when the loading failed. It took me some time to understand I was not running the executable from the right location; I hope error lines will help the next dev :)