From 73474042fe6502805410616d268b1b33e238746b Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Fri, 21 Mar 2014 12:12:10 +0100 Subject: [PATCH] Fixup make install for cmake projects Install all of the public headers and put the dll's in the same directory as the binaries. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10cee3c6..7de46724 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -533,6 +533,8 @@ set(HDR_PUBLIC include/event2/tag_compat.h include/event2/thread.h include/event2/util.h + include/event2/visibility.h + ${PROJECT_BINARY_DIR}/include/event2/event-config.h ) set(SRC_CORE @@ -1114,7 +1116,7 @@ set_target_properties(event event_core event_extra # install(TARGETS event event_core event_extra EXPORT LibeventTargets - RUNTIME DESTINATION "${EVENT_INSTALL_LIB_DIR}" COMPONENT bin + RUNTIME DESTINATION "${EVENT_INSTALL_BIN_DIR}" COMPONENT bin LIBRARY DESTINATION "${EVENT_INSTALL_LIB_DIR}" COMPONENT lib ARCHIVE DESTINATION "${EVENT_INSTALL_LIB_DIR}" COMPONENT lib PUBLIC_HEADER DESTINATION "${EVENT_INSTALL_INCLUDE_DIR}/event2" COMPONENT dev)