polysquare / cmake-unit Goto Github PK
View Code? Open in Web Editor NEWA unit testing framework for CMake
License: MIT License
A unit testing framework for CMake
License: MIT License
cmake-unit overrides add_custom_command
so that it can print command names for generators in a workaround #55. This is known to be somewhat unreliable and prevents any client code from overriding add_custom_command
too because CMake only stores one override entry in its function table.
Workaround: client code may not define any function named add_custom_command
.
Hi smspillaz,
I would like to try out the cmake-unit project, but I have trouble "installing" it. When I download the project and simply add it to my project it misses the file conanbuildinfo.cmake
. It would be very helpful if you had some instructions on how to correctly get your package and its dependencies at the top of the documentation.
From the conan.py file, I take that the missing files are retrieved using the conan package manager. I have only beginners knowledge of python and none of conan. I am working with python 3.4 on windows btw. So this is what I tried so far:
python -m conan install
Requirements
cmake-call-function/master@smspillaz/cmake-call-function from conan.io
cmake-forward-arguments/master@smspillaz/cmake-forward-arguments from conan.io
cmake-forward-cache/master@smspillaz/cmake-forward-cache from conan.io
cmake-include-guard/master@smspillaz/cmake-include-guard from conan.io
cmake-opt-arg-parsing/master@smspillaz/cmake-opt-arg-parsing from conan.io
cmake-spacify-list/master@smspillaz/cmake-spacify-list from conan.io
Packages
cmake-call-function/master@smspillaz/cmake-call-function:c6adec7915b5bae7abf89c59546b0a540bfb7601
cmake-forward-arguments/master@smspillaz/cmake-forward-arguments:c6adec7915b5bae7abf89c59546b0a540bfb7601
cmake-forward-cache/master@smspillaz/cmake-forward-cache:c6adec7915b5bae7abf89c59546b0a540bfb7601
cmake-include-guard/master@smspillaz/cmake-include-guard:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
cmake-opt-arg-parsing/master@smspillaz/cmake-opt-arg-parsing:c6adec7915b5bae7abf89c59546b0a540bfb7601
cmake-spacify-list/master@smspillaz/cmake-spacify-list:34a1ee842030afb1f43dc95a615b35ab928736f2
WARN: Can't find a 'cmake-include-guard/master@smspillaz/cmake-include-guard' package for the specified options and settings:
- Settings:
- Options: dev=False
ERROR: Missing prebuilt package for 'cmake-include-guard/master@smspillaz/cmake-include-guard'
Try to build it from sources with "--build cmake-include-guard"
Or read "http://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package"
Do you have any ideas what else do I need to do to make it work?
Thank you for your time.
Coverage file paths may not contain the square brackets ([,]) characters. These characters are stripped out of the configure phase standard error as they cause problems with ;
delimiters splitting lines in CMake.
Workaround: Do not use square brackets in filenames or paths to filenames.
The command name add_custom_target
on Visual Studio generators will never be printed in the build logs, even with the highest verbosity settings. This makes it impossible to check the build logs to see if commands ran.
A similar issue theoretically exists for add_custom_command
, but this can be worked around.
Workaround: Avoid running commands in add_custom_target
. Instead, generate a file and use add_custom_command
instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.