diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9dc6d89..4771703 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -70,6 +70,11 @@ if(ENABLE_SHARED) ) endif() set_target_properties(bcg729 PROPERTIES PREFIX "lib") + if(MSVC) + message(STATUS "Force use WindowsApp for bcg729 : ${ENABLE_MICROSOFT_STORE_APP}") + set_target_properties(bcg729 PROPERTIES LINK_DIRECTORIES "\$(WindowsSDK_LibraryPath_x86);\$(NETFXKitsDir)Lib\\um\\x86;\$(VC_LibraryPath_VC_x86_store);\$(VC_ReferencesPath_ATL_x86);\$(VC_LibraryPath_VC_x86);\$(VC_LibraryPath_x86);C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\VS\\UnitTest\\lib;\$(LibraryPath)") + target_link_libraries(bcg729 PRIVATE "WindowsApp.lib") + endif() endif() install(TARGETS bcg729 EXPORT Bcg729Targets RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}