2002-11-09 02:07:41 +03:00
|
|
|
# create a shared C++ library
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_CXX_CREATE_SHARED_LIBRARY
|
2002-11-09 02:07:41 +03:00
|
|
|
"<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
|
2002-12-31 21:08:44 +03:00
|
|
|
"<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
2002-11-09 02:07:41 +03:00
|
|
|
|
|
|
|
# create a C++ static library
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_CXX_CREATE_STATIC_LIBRARY
|
2002-11-09 02:07:41 +03:00
|
|
|
"<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
|
2002-12-31 21:08:44 +03:00
|
|
|
"<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
|
2002-11-09 02:07:41 +03:00
|
|
|
"<CMAKE_RANLIB> <TARGET> ")
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_CXX_LINK_EXECUTABLE
|
2002-11-09 02:07:41 +03:00
|
|
|
"<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
|
2002-12-03 18:47:07 +03:00
|
|
|
"<CMAKE_CXX_COMPILER> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
2002-11-09 02:07:41 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "")
|
|
|
|
set(CMAKE_SHARED_LIBRARY_C_FLAGS "")
|