Warning, /office/calligra/libs/version/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # generate calligraversion.h
0002 configure_file(calligraversion.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/calligraversion.h)
0003 
0004 # generate calligragitversion.h
0005 configure_file(calligragitversion.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/calligragitversion.h)
0006 
0007 
0008 set(koversion_LIB_SRCS
0009     calligraversion.cpp
0010     CalligraVersionWrapper.cpp
0011 )
0012 
0013 add_library(koversion SHARED ${koversion_LIB_SRCS})
0014 target_link_libraries(koversion Qt5::Core)
0015 generate_export_header(koversion BASE_NAME koversion)
0016 
0017 set_target_properties(koversion PROPERTIES
0018     VERSION ${GENERIC_CALLIGRA_LIB_VERSION} SOVERSION ${GENERIC_CALLIGRA_LIB_SOVERSION}
0019 )
0020 install(TARGETS koversion ${INSTALL_TARGETS_DEFAULT_ARGS} )
0021 
0022 if (SHOULD_BUILD_DEVEL_HEADERS)
0023 
0024 install( FILES
0025     ${CMAKE_CURRENT_BINARY_DIR}/calligraversion.h
0026     ${CMAKE_CURRENT_BINARY_DIR}/calligragitversion.h
0027     ${CMAKE_CURRENT_BINARY_DIR}/koversion_export.h
0028 DESTINATION ${INCLUDE_INSTALL_DIR}/calligra COMPONENT Devel)
0029 
0030 endif()