Win32Configuration.cmake 734 B

123456789101112131415161718192021
  1. set(INSTALL_BIN_DIR .)
  2. set(INSTALL_RESOURCE_DIR resources)
  3. set(HAVE_UPDATER 1)
  4. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Oy-")
  5. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Oy-")
  6. find_library(WINMM winmm)
  7. find_library(IMMLIB imm32)
  8. find_library(VERLIB version)
  9. set(OS_LIBS ${WINMM} ${IMMLIB} ${VERLIB})
  10. # Add install rules for required system runtimes such as MSVCRxx.dll
  11. SET (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP ON)
  12. INCLUDE(InstallRequiredSystemLibraries)
  13. IF (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS)
  14. INSTALL(FILES ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}
  15. DESTINATION ${INSTALL_BIN_DIR}
  16. PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ
  17. COMPONENT Runtime)
  18. ENDIF (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS)