You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
473 B
19 lines
473 B
enable_language(C)
|
|
|
|
add_library(exA SHARED dll.c)
|
|
set_target_properties(exA PROPERTIES
|
|
SOVERSION 2
|
|
DLL_NAME_WITH_SOVERSION 1
|
|
)
|
|
|
|
set(CMAKE_DLL_NAME_WITH_SOVERSION 1)
|
|
add_library(exB SHARED dll.c)
|
|
set_property(TARGET exB PROPERTY SOVERSION 2)
|
|
|
|
add_custom_target(checkNames ALL
|
|
COMMAND ${CMAKE_COMMAND} -E echo exA_name="$<TARGET_FILE_NAME:exA>"
|
|
COMMAND ${CMAKE_COMMAND} -E echo exB_name="$<TARGET_FILE_NAME:exB>"
|
|
VERBATIM
|
|
)
|
|
add_dependencies(checkNames exA exB)
|