> Здравствуйте, пытаюсь через CMAKE добавить версию для target следующим способом, но не
> получается:
> ...хз, выжимка из рабочего проекта (cmake 2.8 - 3.x):
cat config.h.cmake
...
#define PROJECT_NAME "${PROJECT_NAME}"
#define PROJECT_NAMELOW "${PROJECT_NAMELOW}"
#define PROJECT_VERSION "${PROJECT_VERSION}"
#define PROJECT_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}
#define PROJECT_VERSION_MINOR ${PROJECT_VERSION_MINOR}
#define PROJECT_VERSION_PATCH ${PROJECT_VERSION_PATCH}
...
cat CMakeLists.txt
...
###########################
# CORE LIBRARY #
###########################
if(PROJECT_SYSTEM_NAME MATCHES WINDOWS)
set_target_properties(${PROJECT_CORELIB_NAME} PROPERTIES VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} SOVERSION 0)
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE})
else(PROJECT_SYSTEM_NAME MATCHES WINDOWS)
set_target_properties(${PROJECT_CORELIB_NAME} PROPERTIES VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} SOVERSION 0)
endif(PROJECT_SYSTEM_NAME MATCHES WINDOWS)
...