source: nscp/modules/DotnetPlugins/CMakeLists.txt @ d6c3131

0.4.00.4.10.4.2
Last change on this file since d6c3131 was 74e060a, checked in by Michael Medin <michael@…>, 14 months ago
  • Added new command to EventLog? CheckEventlogCached? which checks result caught by the real-time process. CheckEventLogCACHE warn=gt:1 crit=gt:5 Requires a configured real-time checker to work.
  • Fixed issue in installer and "Make file writable" by everyone now uses Users SID.
  • Fixed issue in installer and "Default plugins" now correctly sets them to 1.
  • Removed dependency on tcpip from the service and the installer
  • Added a series of keywords to EventLog? check to facilitate better checking
  • Added a set of aliases to make EventLog? behave more like Wdinwos Eventlog viewer.
  • Added a lot of unit test cases to the Eventlog checker.
  • Fixed issue with default schedule beeing added as an item and not a template
  • Property mode set to 100644
File size: 1.4 KB
Line 
1cmake_minimum_required(VERSION 2.6)
2
3SET(TARGET DotnetPlugins)
4
5PROJECT(${TARGET})
6
7SET(SRCS
8        stdafx.cpp
9        "${TARGET}.cpp"
10        ${NSCP_DEF_PLUGIN_CPP}
11plugin_instance.cpp
12
13        ${NSCP_INCLUDEDIR}/arrayBuffer.cpp
14
15        ${NSCP_INCLUDEDIR}/nscapi/nscapi_core_wrapper.cpp
16        ${NSCP_INCLUDEDIR}/nscapi/nscapi_helper.cpp
17        ${NSCP_INCLUDEDIR}/nscapi/nscapi_plugin_wrapper.cpp
18)
19
20ADD_DEFINITIONS(${NSCP_GLOBAL_DEFINES})
21
22IF(WIN32)
23        SET(SRCS ${SRCS}
24                stdafx.h
25                "${TARGET}.h"
26                "${TARGET}.def"
27                plugin_instance.hpp
28
29                ${NSCP_DEF_PLUGIN_HPP}
30        )
31ENDIF(WIN32)
32
33STRING(REPLACE "/EHsc" "/EHa" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
34STRING(REPLACE "/MT" "/MD" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
35STRING(REPLACE "/MT" "/MD" CMAKE_CXX_FLAGS_RELWITHDEBINFO ${CMAKE_CXX_FLAGS_RELWITHDEBINFO})
36STRING(REPLACE "/MT" "/MD" CMAKE_CXX_FLAGS_MINSIZEREL ${CMAKE_CXX_FLAGS_MINSIZEREL})
37STRING(REPLACE "/MTd" "/MDd" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
38STRING(REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
39STRING(REPLACE "/RTCs" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
40STRING(REPLACE "/GZ" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
41SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /clr /FU ${BUILD_TARGET_EXE_PATH}/NSCPDOTNET.dll")
42
43ADD_LIBRARY(${TARGET} MODULE ${SRCS})
44
45ADD_DEPENDENCIES(${TARGET} NSCPDOTNET)
46
47target_link_libraries(${TARGET})
48INCLUDE(${BUILD_CMAKE_FOLDER}/module.cmake)
Note: See TracBrowser for help on using the repository browser.