|
1
2
3
|
cmake_minimum_required(VERSION 3.3)
project(nagios_plugins)
|
|
4
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -U__STRICT_ANSI__")
|
|
5
|
|
|
6
|
set(SOURCE_FILES_CSGO check_csgo/check_csgo.cpp check_csgo/auxiliar.cpp check_csgo/udp.cpp)
|
|
7
8
|
add_executable(check_csgo ${SOURCE_FILES_CSGO})
|
|
9
10
|
set(SOURCE_FILES_UPNP check_upnp/check_upnp.cpp check_upnp/auxiliar.cpp check_upnp/udp.cpp)
add_executable(check_upnp ${SOURCE_FILES_UPNP})
|
|
11
|
|
|
12
13
14
|
set(SOURCE_FILES_MEMFREE check_memfree/check_memfree.cpp check_memfree/range.cpp check_memfree/auxiliar.cpp)
add_executable(check_memfree ${SOURCE_FILES_MEMFREE})
|
|
15
|
set(SOURCE_FILES_MEMFREE_FREEBSD check_memfree_freebsd/check_memfree.cpp check_memfree_freebsd/range.cpp check_memfree_freebsd/auxiliar.cpp)
|
|
16
17
18
19
20
|
add_executable(check_memfree_freebsd ${SOURCE_FILES_MEMFREE_FREEBSD})
set(SOURCE_FILES_SMART check_smart/check_smart.cpp check_smart/auxiliar.cpp)
add_executable(check_smart ${SOURCE_FILES_SMART})
|
|
21
22
23
|
set(SOURCE_FILES_NVME check_nvme/check_nvme.cpp check_nvme/auxiliar.cpp)
add_executable(check_nvme ${SOURCE_FILES_NVME})
|
|
24
25
26
27
28
29
|
find_library(libsensors libsensors.so)
set(SOURCE_FILES_SENSORS check_sensors/check_sensors.cpp check_sensors/auxiliar.cpp)
add_executable(check_sensors ${SOURCE_FILES_SENSORS})
target_link_libraries(check_sensors ${libsensors})
|
|
30
|
set(SOURCE_FILES_TFTP check_tftp/check_tftp.cpp check_tftp/udp.cpp check_tftp/auxiliar.cpp)
|
|
31
32
|
add_executable(check_tftp ${SOURCE_FILES_TFTP})
|
|
33
34
35
|
set(SOURCE_FILES_OPENVPN check_openvpn/check_openvpn.cpp check_openvpn/tcp.cpp check_openvpn/auxiliar.cpp)
add_executable(check_openvpn ${SOURCE_FILES_OPENVPN})
|