From 347daceced3a516fec8080e0fe640f68c137db76 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 5 Dec 2019 16:15:30 -0500 Subject: use pipe to emulate eventfd on mac; add install script --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 29a99ff..c0769dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,10 +48,12 @@ if(BUILD_SHARED) add_library(salticidae_shared SHARED $) set_target_properties(salticidae_shared PROPERTIES OUTPUT_NAME "salticidae") target_link_libraries(salticidae_shared uv crypto ssl pthread) + install(TARGETS salticidae_shared DESTINATION lib) endif() add_library(salticidae_static STATIC $) set_target_properties(salticidae_static PROPERTIES OUTPUT_NAME "salticidae") target_link_libraries(salticidae_static uv crypto ssl pthread) +install(TARGETS salticidae_static DESTINATION lib) option(BUILD_TEST "build test binaries." OFF) if(BUILD_TEST) @@ -73,3 +75,5 @@ configure_file(src/config.h.in include/salticidae/config.h @ONLY) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -W -Wall -Wextra -pedantic -Wsuggest-override") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -W -Wall -Wextra -pedantic -Wsuggest-override") + +install(DIRECTORY include/ DESTINATION include) -- cgit v1.2.3