Warning, /office/kmymoney/kmymoney/misc/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 install(PROGRAMS financequote.pl
0002         DESTINATION ${DATA_INSTALL_DIR}/kmymoney/misc)
0003 
0004 set( kmm_utils_validators_SRCS
0005   charvalidator.cpp
0006   validators.cpp
0007 )
0008 
0009 set( kmm_utils_webconnect_SRCS
0010   webconnect.cpp
0011 )
0012 
0013 if( "${HAVE_UNISTD_H}" AND "${HAVE_PWD_H}" )
0014   set( kmm_utils_platformtools_SRCS
0015     platformtools_gnu.cpp
0016   )
0017 elseif( "${HAVE_WINDOWS_H}" AND "${HAVE_LMCONS_H}" AND "${HAVE_PROCESS_H}" )
0018   set( kmm_utils_platformtools_SRCS
0019     platformtools_nognu.cpp
0020   )
0021 else()
0022   message(FATAL_ERROR "make sure either windows.h and lmcons.h (on msvc platforms) or unistd.h and pwd.h (on other platforms) are present.")
0023 endif()
0024 
0025 set( kmm_utils_validators_HEADER
0026   charvalidator.h
0027   validators.h
0028 )
0029 
0030 set( kmm_utils_webconnect_HEADER
0031   webconnect.h
0032 )
0033 
0034 set( kmm_utils_platformtools_HEADER
0035   platformtools.h
0036 )
0037 
0038 set( kmm_printer_SRCS
0039   kmm_printer.cpp
0040 )
0041 
0042 
0043 add_library(kmm_utils_validators STATIC ${kmm_utils_validators_SRCS})
0044 add_library(kmm_utils_webconnect STATIC ${kmm_utils_webconnect_SRCS})
0045 add_library(kmm_utils_platformtools STATIC ${kmm_utils_platformtools_SRCS})
0046 add_library(kmm_printer SHARED ${kmm_printer_SRCS})
0047 
0048 target_link_libraries( kmm_utils_validators
0049   PUBLIC
0050   Qt5::Core
0051   Qt5::Gui
0052 )
0053 
0054 target_link_libraries( kmm_utils_webconnect
0055   PUBLIC
0056   Qt5::Core
0057   Qt5::Network
0058 )
0059 
0060 target_link_libraries( kmm_utils_platformtools
0061   PUBLIC
0062   Qt5::Core
0063 )
0064 
0065 target_link_libraries(kmm_printer
0066   PUBLIC
0067   Qt5::Core
0068   Qt5::PrintSupport
0069 )
0070 
0071 set_target_properties(kmm_printer PROPERTIES
0072   VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}
0073 )
0074 
0075 generate_export_header(kmm_printer)
0076 
0077 install(TARGETS kmm_printer ${INSTALL_TARGETS_DEFAULT_ARGS} )
0078 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kmm_printer_export.h
0079   DESTINATION ${INCLUDE_INSTALL_DIR}/kmymoney COMPONENT Devel)
0080