Issue
Is job in qmake:
LIBS+= -L"C:\Program Files\program\any_dll.dll"
How to in cmake?
cmake_minimum_required(VERSION 2.8)
project(my_project)
add_executable(${PROJECT_NAME} "main.cpp")
Solution
If CMake does not now a target (i.e. it is not build by CMake) it assumes it to be a prebuild library.
link_directories(
"C:/Program Files/program"
)
add_executable(${PROJECT_NAME} "main.cpp")
target_link_libraries(${PROJECT_NAME}
any_dll
)
Answered By - IIRistoII