I relatively new to CMake and I'm trying to link different libraries to my projects. While I could handle some libraries like GLFW, I have troubles with Optick: https://github.com/bombomby/optick
The source tree is:
- CMakeLists
- src
- CMakeLists
- main.cpp
- optick
The root CMakeList file:
cmake_minimum_required(VERSION 3.7)
project( OptickTest )
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
add_subdirectory(optick)
add_subdirectory(src)
And the CMakeLists in the src folder:
cmake_minimum_required(VERSION 3.7)
add_executable( OptickTest "main.cpp" )
target_link_libraries( OptickTest OptickCore )
I can generate a Visual Studio solution, but when I execute it, it cannot find "OptickCored.dll".
Optick seems to be a simple and lightweight library, so I must have done something wrong here, but I can't find it.