I am working on an open source project which uses C for libraries, C++ for GUI and Cmake for managing build. This project is just started and have only couple of files. I can successfully generate makefiles on my linux development environment and on windows I can generate Visual Studio project files using CMake. All works well so far.
As the project is evolving, I am in a stage where I need a testing framework. I have good experience with UnitTest++ which will work well on all popular platforms.
The problem is, I have no clue to integrate the UnitTest++ build with CMake (they use makefile on linux and visual studio project files are available for windows). I need to build UnitTest++ files to generate a library before my code is built. How can I specify this in CMake in a way which will work on linux and windows?