shared_libs.cmake 277 B

123456789
  1. add_custom_target(all-shared-libs)
  2. function(add_shared_library Tgt)
  3. add_library(${Tgt} SHARED ${ARGN})
  4. add_dependencies(all-shared-libs ${Tgt})
  5. if (NOT CMAKE_POSITION_INDEPENDENT_CODE)
  6. set_property(TARGET ${Tgt} PROPERTY EXCLUDE_FROM_ALL On)
  7. endif()
  8. endfunction()