@@ -61,6 +61,21 @@ SET(EXECUTABLE_OUTPUT_PATH "" CACHE INTERNAL
61
61
"Where to put the executables for Domoticz"
62
62
)
63
63
64
+ INCLUDE (CheckIncludeFile)
65
+ CHECK_INCLUDE_FILE (execinfo.h HAVE_EXECINFO_H)
66
+
67
+ IF (HAVE_EXECINFO_H)
68
+ # FreeBSD have to include libexeinfo
69
+ IF (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" )
70
+ find_library (EXECINFO_LIBRARIES NAMES libexecinfo.so)
71
+ IF (EXECINFO_LIBRARIES)
72
+ ADD_DEFINITIONS (-DHAVE_EXECINFO_H)
73
+ ENDIF ()
74
+ ELSE ()
75
+ ADD_DEFINITIONS (-DHAVE_EXECINFO_H)
76
+ ENDIF ()
77
+ ENDIF (HAVE_EXECINFO_H)
78
+
64
79
#set(CMAKE_EXE_LINKER_FLAGS "-static")
65
80
66
81
# Macro for setting up precompiled headers. Usage:
@@ -227,12 +242,15 @@ hardware/AnnaThermostat.cpp
227
242
hardware/ASyncSerial.cpp
228
243
hardware/ASyncTCP.cpp
229
244
hardware/AtagOne.cpp
245
+ hardware/BleBox.cpp
230
246
hardware/Comm5TCP.cpp
231
247
hardware/Comm5Serial.cpp
232
248
hardware/csocket.cpp
233
249
hardware/CurrentCostMeterBase.cpp
234
250
hardware/CurrentCostMeterSerial.cpp
235
251
hardware/CurrentCostMeterTCP.cpp
252
+ hardware/Daikin.cpp
253
+ hardware/DarkSky.cpp
236
254
hardware/DavisLoggerSerial.cpp
237
255
hardware/DenkoviSmartdenLan.cpp
238
256
hardware/DomoticzHardware.cpp
@@ -242,15 +260,17 @@ hardware/Dummy.cpp
242
260
hardware/EcoDevices.cpp
243
261
hardware/EnOceanESP2.cpp
244
262
hardware/EnOceanESP3.cpp
263
+ hardware/Ec3kMeterTCP.cpp
245
264
hardware/evohome.cpp
246
265
hardware/ETH8020.cpp
247
266
hardware/Fitbit.cpp
248
- hardware/ForecastIO.cpp
249
267
hardware/FritzboxTCP.cpp
268
+ hardware/GoodweAPI.cpp
250
269
hardware/Gpio.cpp
251
270
hardware/GpioPin.cpp
252
271
hardware/HardwareMonitor.cpp
253
272
hardware/HarmonyHub.cpp
273
+ hardware/HEOS.cpp
254
274
hardware/I2C.cpp
255
275
hardware/ICYThermostat.cpp
256
276
hardware/KMTronicBase.cpp
@@ -263,13 +283,15 @@ hardware/LogitechMediaServer.cpp
263
283
hardware/Meteostick.cpp
264
284
hardware/MochadTCP.cpp
265
285
hardware/MQTT.cpp
286
+ hardware/MultiFun.cpp
266
287
hardware/MySensorsBase.cpp
267
288
hardware/MySensorsSerial.cpp
268
289
hardware/MySensorsTCP.cpp
269
290
hardware/NefitEasy.cpp
270
291
hardware/Nest.cpp
271
292
hardware/Netatmo.cpp
272
293
hardware/HttpPoller.cpp
294
+ hardware/OpenWeatherMap.cpp
273
295
hardware/OpenWebNet.cpp
274
296
hardware/openwebnet/bt_openwebnet.cpp
275
297
hardware/OpenZWave.cpp
@@ -317,7 +339,11 @@ hardware/Winddelen.cpp
317
339
hardware/WOL.cpp
318
340
hardware/Wunderground.cpp
319
341
hardware/YouLess.cpp
342
+ hardware/ZiBlueBase.cpp
343
+ hardware/ZiBlueSerial.cpp
344
+ hardware/ZiBlueTCP.cpp
320
345
hardware/ZWaveBase.cpp
346
+ hardware/Yeelight.cpp
321
347
notifications/NotificationBase.cpp
322
348
notifications/NotificationEmail.cpp
323
349
notifications/NotificationGCM.cpp
@@ -329,6 +355,7 @@ notifications/NotificationNma.cpp
329
355
notifications/NotificationPushbullet.cpp
330
356
notifications/NotificationProwl.cpp
331
357
notifications/NotificationPushover.cpp
358
+ notifications/NotificationPushsafer.cpp
332
359
notifications/NotificationPushalot.cpp
333
360
notifications/NotificationSMS.cpp
334
361
smtpclient/SMTPClient.cpp
@@ -573,26 +600,10 @@ else()
573
600
message (STATUS "Not found telldus-core (telldus-core.h), not adding tellstick support" )
574
601
endif (TELLDUSCORE_INCLUDE)
575
602
576
- # Under FreeBSD sys/sysinfo?h exist using a separate pkg
577
- IF (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" )
578
- find_path (SYSINFO_INCLUDE NAMES sys/sysinfo.h)
579
- if (SYSINFO_INCLUDE)
580
- message (STATUS "Found sys/sysinfo.h at : ${SYSINFO_INCLUDE} " )
581
- find_library (SYSINFO_LIBRARIES NAMES libsysinfo.so)
582
- if (SYSINFO_LIBRARIES)
583
- message (STATUS "Found libsysinfo.so at : ${SYSINFO_LIBRARIES} " )
584
- else (SYSINFO_LIBRARIES)
585
- message (FATAL_ERROR "Cannot find libsysinfo, please install it with 'pkg install libsysinfo'" )
586
- endif (SYSINFO_LIBRARIES)
587
- else ()
588
- message (FATAL_ERROR "Cannot find sysinfo.h, please install it with 'pkg install libsysinfo'" )
589
- endif ()
590
- ENDIF ()
591
-
592
603
IF (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
593
604
target_link_libraries (domoticz ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} pthread ${LUA_LIBRARIES} ${MQTT_LIBRARIES} ${SQLite_LIBRARIES} ${CMAKE_DL_LIBS} ${TELLDUS_LIBRARIES} )
594
605
else ()
595
- target_link_libraries (domoticz -lrt ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} pthread ${LUA_LIBRARIES} ${MQTT_LIBRARIES} ${SQLite_LIBRARIES} ${CMAKE_DL_LIBS} ${TELLDUS_LIBRARIES} ${SYSINFO_LIBRARIES } )
606
+ target_link_libraries (domoticz -lrt ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} pthread ${LUA_LIBRARIES} ${MQTT_LIBRARIES} ${SQLite_LIBRARIES} ${CMAKE_DL_LIBS} ${TELLDUS_LIBRARIES} ${EXECINFO_LIBRARIES } )
596
607
ENDIF ()
597
608
598
609
ADD_PRECOMPILED_HEADER(domoticz "main/stdafx.h" )
@@ -646,6 +657,7 @@ install(TARGETS domoticz DESTINATION ${CMAKE_INSTALL_PREFIX})
646
657
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /www DESTINATION ${CMAKE_INSTALL_PREFIX} )
647
658
install (FILES ${CMAKE_CURRENT_SOURCE_DIR} /License.txt DESTINATION ${CMAKE_INSTALL_PREFIX} )
648
659
install (FILES ${CMAKE_CURRENT_SOURCE_DIR} /History.txt DESTINATION ${CMAKE_INSTALL_PREFIX} )
660
+ install (FILES ${CMAKE_CURRENT_SOURCE_DIR} /server_cert.pem DESTINATION ${CMAKE_INSTALL_PREFIX} )
649
661
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /scripts DESTINATION ${CMAKE_INSTALL_PREFIX} USE_SOURCE_PERMISSIONS)
650
662
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /Config DESTINATION ${CMAKE_INSTALL_PREFIX} )
651
663
install (FILES ${CMAKE_CURRENT_SOURCE_DIR} /updatedomo DESTINATION ${CMAKE_INSTALL_PREFIX} PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ)
0 commit comments