filipdutescu / modern-cpp-template

A template for modern C++ projects using CMake, Clang-Format, CI, unit testing and more, with support for downstream inclusion.
The Unlicense
1.69k stars 214 forks source link

[BUG] The unit test module failed to compile #37

Open geodoer opened 2 years ago

geodoer commented 2 years ago

Hi. This C++ project template is useful to me. Thanks!

Unfortunately, the unit test module failed to compile. You may need to add the following to test/cmakelists.txt:

  target_include_directories(
    ${test_name}_Tests
    PUBLIC ${CMAKE_SOURCE_DIR}/include
    PRIVATE ${CMAKE_SOURCE_DIR}/src
  )
filipdutescu commented 2 years ago

Hello and thanks a lot for the kind words, as well as for reporting this bug! Do you happen to still have the compile error? It should not happen and I am trying to figure out if it was an environment issue or a template issue.