Closed balarsen closed 9 years ago
You mean put libraries in lib and headers in include?
Yeah exactly. Also might be nice to be able to use cmake for the tests, I could not figure out how to run checkmk then gcc on them.
CMake has ctest which we use for our unit and regression testing. Works really well. I'll have a look at the CMake scripts.
I can totally start using ctest instead if y'all can show me how with a template or links to decent documentaion
Brian
On Wed, Oct 1, 2014 at 10:50 AM, Nicolas Bock notifications@github.com wrote:
CMake has ctest which we use for our unit and regression testing. Works really well. I'll have a look at the CMake scripts.
— Reply to this email directly or view it on GitHub https://github.com/cbkiyanda/cspl/issues/3#issuecomment-57497690.
Can you explain how cmake test you added for size knows how to pass?
At this point it simply uses the exit code of the program to determine whether the test passed or not. You could alternatively print something and then use regular expressions for success and failure. It's simpler to use though if you can condense things down to an exit code.
Please have a look at 1f53fe56. It installs the library and the header files.
I believe we can close this now
We need to hammer on cmake to make this thing install properly with the library and headers.