Hi,
I would be very interested in the source files/demo video of your posted
code kata using CMake. I'm currently not very familiar with C Macros and CMake and need a kickstart to setup a Project on my own. I'm lacking of having one main.cpp File executing all Specs.
I have following file structure:
.
├── CMakeLists.txt
├── include
├── src
│ └── subject
│ ├── subject.cpp
│ └── subject.hpp
├── tests
│ ├── main.cpp
│ └── subject_test.cpp
Where main.cpp includes:
int main(int argc, char *argv[])
{
return TestRunner::RunAllTests(argc, argv);
}
and my subject_tests includes the real Specification.
Here is my Cmake.txt:
cmake_minimum_required(VERSION 2.8.4)
project(project)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
include_directories(include src tests)
add_executable(all_tests tests/main.cpp)
But running all_tests only prints:
Test run complete. 0 tests run, 0 succeeded, 0 failed.
So he does not include the subject_test.cpp correctly.