Define 'WINDOWS_PHONE' and 'WINDOWS_STORE' variables

Set one of these when CMAKE_SYSTEM_NAME is "WindowsPhone" or
"WindowsStore", respectively.
This commit is contained in:
Gilles Khouzam
2014-07-28 14:19:45 -04:00
committed by Brad King
parent aa42a78f52
commit 592098e2d5
4 changed files with 16 additions and 0 deletions
+4
View File
@@ -2,6 +2,10 @@ set(WIN32 1)
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsCE")
set(WINCE 1)
elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone")
set(WINDOWS_PHONE 1)
elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set(WINDOWS_STORE 1)
endif()
set(CMAKE_STATIC_LIBRARY_PREFIX "")