mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 04:40:31 +09:00
Set the cmake project verision to the autogenerated file to have a single
point to set the version. This will be included in the libssh.h file.
Pair-Programmed-With: Andreas Schneider <asn@cryptomilk.org>
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit bee8ed82ab)
40 lines
731 B
CMake
40 lines
731 B
CMake
project(libssh-headers C)
|
|
|
|
set(libssh_HDRS
|
|
callbacks.h
|
|
libssh.h
|
|
ssh2.h
|
|
legacy.h
|
|
libsshpp.hpp
|
|
)
|
|
|
|
if (WITH_SFTP)
|
|
set(libssh_HDRS
|
|
${libssh_HDRS}
|
|
sftp.h
|
|
)
|
|
endif (WITH_SFTP)
|
|
|
|
if (WITH_SERVER)
|
|
set(libssh_HDRS
|
|
${libssh_HDRS}
|
|
server.h
|
|
)
|
|
endif (WITH_SERVER)
|
|
|
|
install(
|
|
FILES
|
|
${libssh_HDRS}
|
|
DESTINATION
|
|
${CMAKE_INSTALL_INCLUDEDIR}/${APPLICATION_NAME}
|
|
COMPONENT
|
|
headers
|
|
)
|
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libssh_version.h.cmake
|
|
${libssh_BINARY_DIR}/include/libssh/libssh_version.h
|
|
@ONLY)
|
|
install(FILES ${libssh_BINARY_DIR}/include/libssh/libssh_version.h
|
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${APPLICATION_NAME}
|
|
COMPONENT headers)
|