Hello
@eue
There is an example how to manage them in CMake in the ‘extras_viewerNative’ sample of
https://gitlab.com/ssv/lessons.
The proposal here is to change CMake file:
- declare variables for FreeType and TBB
Code:
# FreeType
if (NOT DEFINED 3RDPARTY_Freetype_DLL_DIR)
set (3RDPARTY_Freetype_DLL_DIR "" CACHE PATH "The directory containing binaries of freetype")
message (FATAL_ERROR "Define 3RDPARTY_Freetype_DLL_DIR dir")
endif()
# TBB
if (NOT DEFINED 3RDPARTY_TBB_DLL_DIR)
set (3RDPARTY_TBB_DLL_DIR "" CACHE PATH "The directory containing binaries of tbb")
message (FATAL_ERROR "Define 3RDPARTY_TBB_DLL_DIR dir")
endif()
- append them into the application PATH:
Code:
set_property(TARGET ${PROJECT_NAME} PROPERTY VS_DEBUGGER_ENVIRONMENT "PATH=${3RDPARTY_Freetype_DLL_DIR};${3RDPARTY_TBB_DLL_DIR};%PATH%")
After, at configuration step we'll give path to binaries of these libraries to the variables.
Doing this, Visual Studio will silently has them in its 'PATH' (as we described in CMake file) and will not require them on start.
Best regards