I have cmake app which build an window exe. On windows os.
add_executable(app ${app_SRC})
SET_TARGET_PROPERTIES(app PROPERTIES LINK_FLAGS "/MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\" /SUBSYSTEM:WINDOWS")
target_include_directories(app PRIVATE ${wxWidgets_INCLUDE_DIRS})
target_link_libraries(app ${wxWidgets_LIBRARIES})
It build app.exe success. But when I run app.exe. The error dialog show:
Can't find wxbase314ud_vc_custom.dll
.
How can I config the dll path?
I know I can copy the dlls to the exe folder, but is there any other way to do this in CMakeLists.txt
?