Edit

kc3-lang/libevent/cmake/LibeventConfig.cmake.in

Branch :

  • Show log

    Commit

  • Author : Azat Khuzhin
    Date : 2017-03-13 21:05:32
    Hash : 9806b126
    Message : Merge branch 'cmake-missing-bits' This patchset adds next missing things (in compare to autotools): - pkgconfig - event_pthreads/event_openssl - compile shared/static libraries always And some fixes, because it will not build after fixing other things: - export missing symbols for cmake (-fvisibility=hidden) * cmake-missing-bits: cmake: support visibility for AppleClang too cmake: fix export absolute path and relative path and cleanup a bit cmake: generate and install pkgconfig files cmake: build SHARED and STATIC libraries (like autoconf does) cmake: add missing event_openssl/event_pthreads libraries Export symbols for -fvisibility=hidden (under cmake) Refs: #246 (cherry picked from commit 489991a2b2628ba1ff4e6879b9f67ec35d224c38)

  • cmake/LibeventConfig.cmake.in
  • # - Config file for the Libevent package
    # It defines the following variables
    #  LIBEVENT_INCLUDE_DIRS     - include directories
    #  LIBEVENT_STATIC_LIBRARIES - libraries to link against (archive/static)
    #  LIBEVENT_SHARED_LIBRARIES - libraries to link against (shared)
    
    # Get the path of the current file.
    get_filename_component(LIBEVENT_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
    
    # Set the include directories.
    set(LIBEVENT_INCLUDE_DIRS "@EVENT_INSTALL_INCLUDE_DIR@")
    
    # Include the project Targets file, this contains definitions for IMPORTED targets.
    include(${LIBEVENT_CMAKE_DIR}/LibeventTargets.cmake)
    
    # IMPORTED targets from LibeventTargets.cmake
    set(LIBEVENT_STATIC_LIBRARIES "@LIBEVENT_STATIC_LIBRARIES@")
    set(LIBEVENT_SHARED_LIBRARIES "@LIBEVENT_SHARED_LIBRARIES@")