|
|
|
@ -38,10 +38,10 @@ ENDMACRO(NL_TARGET_DRIVER)
|
|
|
|
|
###
|
|
|
|
|
MACRO(NL_DEFAULT_PROPS name label)
|
|
|
|
|
GET_TARGET_PROPERTY(type ${name} TYPE)
|
|
|
|
|
IF(${type} STREQUAL SHARED_LIBRARY)
|
|
|
|
|
# Set versions only if target is a shared library
|
|
|
|
|
IF((${type} STREQUAL SHARED_LIBRARY) OR (${type} STREQUAL MODULE_LIBRARY))
|
|
|
|
|
# Set versions only if target is a shared library or a module
|
|
|
|
|
SET(versions VERSION ${NL_VERSION} SOVERSION ${NL_VERSION_MAJOR})
|
|
|
|
|
ENDIF(${type} STREQUAL SHARED_LIBRARY)
|
|
|
|
|
ENDIF((${type} STREQUAL SHARED_LIBRARY) OR (${type} STREQUAL MODULE_LIBRARY))
|
|
|
|
|
SET_TARGET_PROPERTIES(${name} PROPERTIES
|
|
|
|
|
${versions}
|
|
|
|
|
PROJECT_LABEL ${label})
|
|
|
|
|