How to best tell CMake where to find dll
问题 I have a simple project structure derived from the amazing tutorial https://rix0r.nl/blog/2015/08/13/cmake-guide/ It looks as follows: - src - CMakeLists.txt - mylib - include/mylib/mylibclass.h - src/mylibclass.cpp - CMakeLists.txt - myapp - src/myapp.cpp - CMakeLists.txt The top level CMakeLists.txt contains: cmake_minimum_required( VERSION 3.6 ) project( sample_project VERSION 0.1 LANGUAGES CXX ) set( BUILD_SHARED_LIBS ON CACHE BOOL "" ) add_subdirectory( mylib ) add_subdirectory( myapp )