source: nscp/modules/SMTPClient/CMakeLists.txt @ b24c97f

0.4.00.4.10.4.2
Last change on this file since b24c97f was 40fca56, checked in by Michael Medin <michael@…>, 19 months ago
  • Added initial SMTPClient to allow sending messages via SMTP. Still requires template support and configuration options (mainly PoC right now).
  • Fixed unicode log issue (still not sure message format is correct)
  • Renamed Message to log in internal wrapper API
  • Fixed issue in settings old (regarding readin new keys, not 100% supported yet)
  • Property mode set to 100644
File size: 752 bytes
Line 
1cmake_minimum_required(VERSION 2.6)
2
3SET(TARGET SMTPClient)
4       
5PROJECT(${TARGET})
6
7SET(SRCS
8        stdafx.cpp
9        "${TARGET}.cpp"
10        smtp.cpp
11        ${NSCP_INCLUDEDIR}/socket/socket_helpers.cpp
12        ${NSCP_INCLUDEDIR}/client/command_line_parser.cpp
13
14        ${NSCP_DEF_PLUGIN_CPP}
15)
16
17ADD_DEFINITIONS(${NSCP_GLOBAL_DEFINES})
18
19IF(WIN32)
20        SET(SRCS ${SRCS}
21                stdafx.h
22                "${TARGET}.h"
23                "${TARGET}.def"
24                smtp.hpp
25                ${NSCP_INCLUDEDIR}/socket/socket_helpers.hpp
26                ${NSCP_INCLUDEDIR}/client/command_line_parser.hpp
27                ${NSCP_DEF_PLUGIN_HPP}
28        )
29ENDIF(WIN32)
30
31
32add_library(${TARGET} MODULE ${SRCS})
33
34target_link_libraries(${TARGET}
35        ${Boost_FILESYSTEM_LIBRARY}
36        ${NSCP_DEF_PLUGIN_LIB}
37)
38INCLUDE(${BUILD_CMAKE_FOLDER}/module.cmake)
39SOURCE_GROUP("Server" REGULAR_EXPRESSION .*include/smtp/.*)
Note: See TracBrowser for help on using the repository browser.