Linux-como.cmake 728 B

1234567891011121314151617
  1. # create a shared C++ library
  2. set(CMAKE_CXX_CREATE_SHARED_LIBRARY
  3. "<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
  4. "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
  5. # create a C++ static library
  6. set(CMAKE_CXX_CREATE_STATIC_LIBRARY
  7. "<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
  8. "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
  9. "<CMAKE_RANLIB> <TARGET> ")
  10. set(CMAKE_CXX_LINK_EXECUTABLE
  11. "<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
  12. "<CMAKE_CXX_COMPILER> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
  13. set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "")
  14. set(CMAKE_SHARED_LIBRARY_C_FLAGS "")