Windows-gcc.cmake 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. SET(CMAKE_LINK_LIBRARY_SUFFIX "")
  2. SET(CMAKE_STATIC_LIBRARY_PREFIX "lib")
  3. SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
  4. SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib
  5. SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll") # .so
  6. SET(CMAKE_SHARED_MODULE_PREFIX "lib") # lib
  7. SET(CMAKE_SHARED_MODULE_SUFFIX ".dll") # .so
  8. SET(CMAKE_IMPORT_LIBRARY_PREFIX "lib")
  9. SET(CMAKE_IMPORT_LIBRARY_SUFFIX ".dll.a")
  10. SET(CMAKE_EXECUTABLE_SUFFIX ".exe") # .exe
  11. SET(CMAKE_DL_LIBS "")
  12. SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic
  13. SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "") # -pic
  14. SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared
  15. SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
  16. SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "") # -rpath
  17. SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty
  18. SET(CMAKE_LIBRARY_PATH_FLAG "-L")
  19. SET(CMAKE_LINK_LIBRARY_FLAG "-l")
  20. IF(MINGW)
  21. SET(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
  22. SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a")
  23. ENDIF(MINGW)
  24. SET(CMAKE_C_CREATE_SHARED_MODULE
  25. "<CMAKE_C_COMPILER> <CMAKE_SHARED_MODULE_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_MODULE_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
  26. SET(CMAKE_CXX_CREATE_SHARED_MODULE
  27. "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_MODULE_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
  28. SET(CMAKE_C_CREATE_SHARED_LIBRARY
  29. "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> <OBJECTS> <LINK_LIBRARIES>")
  30. SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
  31. "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> <OBJECTS> <LINK_LIBRARIES>")