Warning, /pim/libkgapi/src/saslplugin/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include(CheckIncludeFile) 0002 include(CheckStructHasMember) 0003 0004 if (NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD") 0005 add_definitions(-D_GNU_SOURCE) 0006 endif() 0007 0008 if (WIN32) 0009 add_definitions(-DWIN32) 0010 elseif (APPLE) 0011 add_definitions(-Dmacintosh) 0012 endif() 0013 0014 check_include_file(unistd.h HAVE_UNISTD_H) 0015 check_include_file(inttypes.h HAVE_INTTYPES_H) 0016 check_struct_has_member("struct sockaddr" sa_len sys/socket.h HAVE_SOCKADDR_SA_LEN) 0017 0018 configure_file(config.h.in config.h) 0019 0020 add_library(kdexoauth2 SHARED 0021 xoauth2plugin.c 0022 xoauth2plugin_init.c 0023 plugin_common.c 0024 plugin_common.h 0025 ) 0026 target_include_directories(kdexoauth2 PRIVATE ${Sasl2_INCLUDE_DIRS}) 0027 set_target_properties(kdexoauth2 PROPERTIES 0028 C_VISIBILITY_PRESET default 0029 SOVERSION 3 0030 VERSION 3.0.0) 0031 0032 install(TARGETS kdexoauth2 DESTINATION ${KDE_INSTALL_LIBDIR}/sasl2)