MSVC: Add system libs for WindowsPhone and WindowsStore

Use the libraries that are added by default by the VS 2013 IDE
for Windows Phone and Windows Store projects.
This commit is contained in:
Brad King 2014-07-31 13:08:53 -04:00
parent c72f0887ce
commit 2074f58138
1 changed files with 5 additions and 1 deletions

View File

@ -165,7 +165,11 @@ if(WINCE)
elseif(WINDOWS_PHONE OR WINDOWS_STORE) elseif(WINDOWS_PHONE OR WINDOWS_STORE)
set(_FLAGS_C " /DUNICODE /D_UNICODE") set(_FLAGS_C " /DUNICODE /D_UNICODE")
set(_FLAGS_CXX " /DUNICODE /D_UNICODE /GR /EHsc") set(_FLAGS_CXX " /DUNICODE /D_UNICODE /GR /EHsc")
set(CMAKE_C_STANDARD_LIBRARIES_INIT "") if(WINDOWS_PHONE)
set(CMAKE_C_STANDARD_LIBRARIES_INIT "WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib")
else()
set(CMAKE_C_STANDARD_LIBRARIES_INIT "kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib")
endif()
else() else()
set(_PLATFORM_DEFINES "/DWIN32") set(_PLATFORM_DEFINES "/DWIN32")