-
-
Notifications
You must be signed in to change notification settings - Fork 490
/
CMakeLists.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 7)
set(RTTY_VERSION_MINOR 4)
set(RTTY_VERSION_PATCH 0)
# 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
)