I have a small c++ project that I converted to cmake (from visual studio's native solutions), as this now appears to be industry standard.
However, there are appear to be some negative side effects: The boost tests are no longer discovered by visual studio's test explorer.
The projct is visible here: https://github.com/dickreuter/neuron_poker/tree/master/tools/montecarlo_cpp
It contains Test.cpp which contains some tests that should be discovered.
the cmake file looks as below. Could this be the issue or what could be the cause of the problem?
cmake_minimum_required(VERSION 3.15)
project(montecarlo_cpp)
set(CMAKE_CXX_STANDARD 14)
include_directories("C:/Users/dickr/Anaconda3/include" "C:/Users/dickr/git/vcpkg/installed/x64-windows/include" )
link_directories("C:/Users/dickr/Anaconda3/libs")
add_executable(montecarlo_cpp
Montecarlo.cpp
Montecarlo.h
Test.cpp)
TARGET_LINK_LIBRARIES( montecarlo_cpp LINK_PUBLIC ${Boost_LIBRARIES} )