39 lines
746 B
CMake
39 lines
746 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(domo-iot)
|
|
|
|
set (CMAKE_MODULE_PATH "${MODULE_PATH}")
|
|
|
|
|
|
link_directories(${CMAKE_SOURCE_DIR}/build/lib)
|
|
|
|
include_directories (${CMAKE_SOURCE_DIR}/libasyncd/include)
|
|
include_directories (${CMAKE_SOURCE_DIR}/libevent/include)
|
|
include_directories (${CMAKE_SOURCE_DIR}/build/libevent/include)
|
|
include_directories (${CMAKE_SOURCE_DIR}/qlibc/include)
|
|
|
|
#set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -Werror=strict-aliasing")
|
|
|
|
file(
|
|
GLOB_RECURSE
|
|
source_files
|
|
main.c
|
|
)
|
|
|
|
|
|
add_executable (domo-iot ${source_files})
|
|
|
|
target_link_libraries (domo-iot
|
|
LINK_PUBLIC
|
|
nats_static
|
|
asyncd-static
|
|
qlibc-static
|
|
qlibcext-static
|
|
event
|
|
event_openssl
|
|
ssl
|
|
crypto
|
|
)
|
|
|
|
install (TARGETS domo-iot DESTINATION local/bin)
|