I\'m having a an issue compiling some unit tests in my cmake project. The idea is to add these boost unit tests as executables, so that I can then run them. Anyway I\'m gett
The target_link_libraries directive needs to be part of the same CMakeLists.txt as the add_executable directive. This also applies to libraries. Think of each directory and associated CMakeLists.txt as a subproject.