cmake: lib cleanup and use cmake package_find

* use OPENSSL_ROOT_DIR
* add special .configure handling for osx
* move readline, curses to cedar

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
This commit is contained in:
Andy Walsh committed 2018-07-31 18:11:13 +02:00
1 parent ce5ee2b070
commit 0bbf08fea7
6 files changed
+19 -19

No files matched your search

+5
View File
@@ -10,6 +10,11 @@ set_target_properties(cedar
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/tmp/Cedar"
)
find_library(LIB_READLINE readline)
find_package(Curses REQUIRED)
target_link_libraries(cedar ${LIB_READLINE} ${CURSES_LIBRARIES})
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
target_link_libraries(cedar pcap)
endif()