I am working on an open source project that uses C for libraries, C++ for the GUI, and Cmake for managing the assembly. This project has just begun and has only a couple of files. I can successfully generate makefiles in my Linux development environment, and on Windows I can generate Visual Studio project files using CMake. So far, everything is working well.
As the project develops, I am at a stage where I need a testing platform. I have good experience with UnitTest++ , which will work well on all popular platforms.
The problem is that I donβt know how to integrate the UnitTest++ construct with Cmake (they use makefile in linux and visual studio files for windows). I need to compile UnitTest++ files to create a library before creating my code. How can I specify this in CMake in a way that will work with linux and windows?
source share