CYGWIN.cmake 1.7 KB

123456789101112131415161718192021222324252627282930
  1. SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,--export-all-symbols -Wl,--enable-auto-import")
  2. SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS})
  3. SET(CMAKE_DL_LIBS "-lgdi32" )
  4. SET(CMAKE_SHARED_LIBRARY_PREFIX "cyg")
  5. SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll")
  6. SET(CMAKE_SHARED_MODULE_PREFIX "lib")
  7. SET(CMAKE_SHARED_MODULE_SUFFIX ".dll")
  8. SET(CMAKE_IMPORT_LIBRARY_PREFIX "lib")
  9. SET(CMAKE_IMPORT_LIBRARY_SUFFIX ".dll.a")
  10. # no pic for gcc on cygwin
  11. SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
  12. SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
  13. SET(CMAKE_EXECUTABLE_SUFFIX ".exe") # .exe
  14. # Modules have a different default prefix that shared libs.
  15. SET(CMAKE_MODULE_EXISTS 1)
  16. SET(CMAKE_FIND_LIBRARY_PREFIXES "cyg" "lib")
  17. SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a")
  18. SET(CMAKE_C_CREATE_SHARED_MODULE
  19. "<CMAKE_C_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_MODULE_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
  20. SET(CMAKE_CXX_CREATE_SHARED_MODULE
  21. "<CMAKE_CXX_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
  22. SET(CMAKE_C_CREATE_SHARED_LIBRARY
  23. "<CMAKE_C_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> <OBJECTS> <LINK_LIBRARIES>")
  24. SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
  25. "<CMAKE_CXX_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> <OBJECTS> <LINK_LIBRARIES>")
  26. INCLUDE(Platform/UnixPaths)