forked from Z-WavePublic/libzwaveip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (25 loc) · 949 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
project(libzwaveip)
cmake_minimum_required(VERSION 2.9)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
#add_definitions(-Wall -Werror)
set(CMAKE_C_FLAGS "-std=gnu99")
find_package(OpenSSL REQUIRED 1.0.1)
find_library(AVAHI_LIBRARY-COMMON NAMES avahi-common)
find_library(AVAHI_LIBRARY-CLIENT NAMES avahi-client)
if(AVAHI_LIBRARY-CLIENT)
add_definitions(-DWITH_MDNS)
set(MDNS_LIBS ${AVAHI_LIBRARY-COMMON} ${AVAHI_LIBRARY-CLIENT})
endif()
include_directories(include/ ${OPENSSL_INCLUDE_DIR} xml/ libedit/)
add_subdirectory( libzwaveip )
add_subdirectory( xml )
add_subdirectory( libedit )
add_subdirectory( examples )
find_package(LibXml2)
find_package(Doxygen)
IF (NOT DOXYGEN_FOUND)
message("---- make doc will not work until doxygen is installed")
ENDIF (NOT DOXYGEN_FOUND)
add_custom_target(doc
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc
COMMAND doxygen ${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile)