2018-07-26 07:44:19 +03:00
|
|
|
file(GLOB SOURCES_CEDAR "*.c")
|
|
|
|
file(GLOB HEADERS_CEDAR "*.h")
|
|
|
|
|
|
|
|
add_library(cedar STATIC ${SOURCES_CEDAR} ${HEADERS_CEDAR})
|
|
|
|
|
|
|
|
set_target_properties(cedar
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/tmp/Cedar"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/tmp/Cedar"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/tmp/Cedar"
|
|
|
|
)
|
|
|
|
|
2018-07-31 12:49:55 +03:00
|
|
|
find_library(LIB_READLINE readline)
|
|
|
|
find_package(Curses REQUIRED)
|
|
|
|
|
|
|
|
target_link_libraries(cedar ${LIB_READLINE} ${CURSES_LIBRARIES})
|
|
|
|
|
2018-07-26 07:44:19 +03:00
|
|
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
|
|
|
target_link_libraries(cedar pcap)
|
|
|
|
endif()
|