Windows.cmake 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. set(WIN32 1)
  2. if(CMAKE_SYSTEM_NAME STREQUAL "WindowsCE")
  3. set(WINCE 1)
  4. elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone")
  5. set(WINDOWS_PHONE 1)
  6. elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
  7. set(WINDOWS_STORE 1)
  8. endif()
  9. set(CMAKE_STATIC_LIBRARY_PREFIX "")
  10. set(CMAKE_STATIC_LIBRARY_SUFFIX ".lib")
  11. set(CMAKE_SHARED_LIBRARY_PREFIX "") # lib
  12. set(CMAKE_SHARED_LIBRARY_SUFFIX ".dll") # .so
  13. set(CMAKE_IMPORT_LIBRARY_PREFIX "")
  14. set(CMAKE_IMPORT_LIBRARY_SUFFIX ".lib")
  15. set(CMAKE_EXECUTABLE_SUFFIX ".exe") # .exe
  16. set(CMAKE_LINK_LIBRARY_SUFFIX ".lib")
  17. set(CMAKE_DL_LIBS "")
  18. set(CMAKE_EXTRA_LINK_EXTENSIONS ".targets")
  19. set(CMAKE_FIND_LIBRARY_PREFIXES "")
  20. set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")
  21. # for borland make long command lines are redirected to a file
  22. # with the following syntax, see Windows-bcc32.cmake for use
  23. if(CMAKE_GENERATOR MATCHES "Borland")
  24. set(CMAKE_START_TEMP_FILE "@&&|\n")
  25. set(CMAKE_END_TEMP_FILE "\n|")
  26. endif()
  27. # for nmake make long command lines are redirected to a file
  28. # with the following syntax, see Windows-bcc32.cmake for use
  29. if(CMAKE_GENERATOR MATCHES "NMake")
  30. set(CMAKE_START_TEMP_FILE "@<<\n")
  31. set(CMAKE_END_TEMP_FILE "\n<<")
  32. endif()
  33. include(Platform/WindowsPaths)
  34. # uncomment these out to debug nmake and borland makefiles
  35. #set(CMAKE_START_TEMP_FILE "")
  36. #set(CMAKE_END_TEMP_FILE "")
  37. #set(CMAKE_VERBOSE_MAKEFILE 1)