The project tests that I'm trying to build cannot be built (missing libraries). The tests themselves are not important, but they prevent me from creating and installing the necessary files. Therefore, I want to do it as a quick fix.
How do I do to build a test assembly in a cmake project? Should I edit the CMakeLists.txt file in the root or in the subdirectory tests? How to edit it?
There is one issue of the ENABLE_TESTING () command. I tried to comment on this, but it did not help. Also tried renaming subdirectory tests. Did not help. This was true only for a special case when "implicit" tests were built.
source
share