Hi,
I’m learning the basics of CMake.
The task is to link external shared library and launch in debug/release mode.
I’m able to successfully link this library and build the project but I’m unable to launch the app because external library is shared and I need to setup the binary folder.
I know I can set this folder from IDE (I use Qt) but I’m looking for a CMake command to set up bin folder of shared linked library.
For example I do:
set(PROJLIB_DIR "C:/apps/MSVC_apps_debug/PROJ_7_1_1_Shared")
target_include_directories(
CMake_Proba
PRIVATE ${PROJLIB_DIR}/include)
target_link_libraries(
CMake_Proba
PRIVATE ${PROJLIB_DIR}/lib/proj_d.lib)
This compiles fine. But to run the app I need to specify bin folder of PROJLIB_DIR.
How can I do that with CMake?