-
-
Notifications
You must be signed in to change notification settings - Fork 512
/
Copy pathCMakeLists.txt
31 lines (24 loc) · 924 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
# The version number.
set(RTTY_VERSION_MAJOR 8)
set(RTTY_VERSION_MINOR 1)
set(RTTY_VERSION_PATCH 3)
# Check the third party Libraries
find_package(Libev REQUIRED)
aux_source_directory(. SRCS)
aux_source_directory(log SRCS)
aux_source_directory(buffer SRCS)
add_executable(rtty ${SRCS})
target_compile_definitions(rtty PRIVATE _GNU_SOURCE)
target_compile_options(rtty PRIVATE -O -Wall -Werror --std=gnu99)
target_include_directories(rtty PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/buffer ${LIBEV_INCLUDE_DIR})
target_link_libraries(rtty PRIVATE ${LIBEV_LIBRARY} util crypt m)
add_subdirectory(ssl)
if(SSL_SUPPORT)
target_link_libraries(rtty PRIVATE ${SSL_TARGET})
endif()
# configure a header file to pass some of the CMake settings to the source code
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
install(
TARGETS rtty
DESTINATION bin
)