Browse Source

Update to fit with Microsoft Store configuration

keep-around/ce4c48734434700e1cdc5fa2be37c271bd32ab6e
Julien Wadel 6 years ago
parent
commit
ea794197a2
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/CMakeLists.txt

+ 4
- 2
src/CMakeLists.txt View File

@ -70,10 +70,12 @@ if(ENABLE_SHARED)
)
endif()
set_target_properties(bcg729 PROPERTIES PREFIX "lib")
if(MSVC)
message(STATUS "Force use WindowsApp for bcg729 : ${ENABLE_MICROSOFT_STORE_APP}")
if(${ENABLE_MICROSOFT_STORE_APP})
message(STATUS "Build bcg729 for Microsoft store")
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")
else()
message(STATUS "Build bcg729 for Desktop")
endif()
endif()
install(TARGETS bcg729 EXPORT Bcg729Targets


Loading…
Cancel
Save