64 lines
2.4 KiB
CMake
64 lines
2.4 KiB
CMake
|
#
|
||
|
# Libevent CMake project
|
||
|
#
|
||
|
# Based on initial work by:
|
||
|
# Alexey Ozeritsky
|
||
|
#
|
||
|
# Additional changes:
|
||
|
# Brodie Thiesfield
|
||
|
# Joakim Soderberg
|
||
|
# Trond Norbye
|
||
|
# Sergei Nikulov
|
||
|
#
|
||
|
# Build example:
|
||
|
#
|
||
|
# cd libevent
|
||
|
# md build
|
||
|
# cd build
|
||
|
# cmake -G "Visual Studio 10" ..
|
||
|
# start libevent.sln
|
||
|
#
|
||
|
|
||
|
project(uiserver)
|
||
|
message("cmake module " $ENV{CMAKE_MODULE_PATH})
|
||
|
message("project dir " ${PROJECT_SOURCE_DIR})
|
||
|
|
||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third/include)
|
||
|
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/third/lib)
|
||
|
|
||
|
link_libraries(event_extra.lib event_core.lib event.lib ws2_32)
|
||
|
|
||
|
add_executable(uiserver main.cpp)
|
||
|
|
||
|
|
||
|
message(STATUS "")
|
||
|
message(STATUS " ---( Libevent " ${EVENT_VERSION} " )---")
|
||
|
message(STATUS "")
|
||
|
message(STATUS "Available event backends: ${BACKENDS}")
|
||
|
message(STATUS "CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}")
|
||
|
message(STATUS "CMAKE_CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}")
|
||
|
message(STATUS "CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR}")
|
||
|
message(STATUS "CMAKE_CURRENT_SOURCE_DIR: ${CMAKE_CURRENT_SOURCE_DIR}")
|
||
|
message(STATUS "PROJECT_BINARY_DIR: ${PROJECT_BINARY_DIR}")
|
||
|
message(STATUS "PROJECT_SOURCE_DIR: ${PROJECT_SOURCE_DIR}")
|
||
|
message(STATUS "CMAKE_MODULE_PATH: ${CMAKE_MODULE_PATH}")
|
||
|
message(STATUS "CMAKE_COMMAND: ${CMAKE_COMMAND}")
|
||
|
message(STATUS "CMAKE_ROOT: ${CMAKE_ROOT}")
|
||
|
message(STATUS "CMAKE_SYSTEM: ${CMAKE_SYSTEM}")
|
||
|
message(STATUS "CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}")
|
||
|
message(STATUS "CMAKE_SYSTEM_VERSION: ${CMAKE_SYSTEM_VERSION}")
|
||
|
message(STATUS "CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}")
|
||
|
message(STATUS "CMAKE_SKIP_RPATH: ${CMAKE_SKIP_RPATH}")
|
||
|
message(STATUS "CMAKE_SKIP_INSTALL_RPATH: ${CMAKE_SKIP_INSTALL_RPATH}")
|
||
|
message(STATUS "CMAKE_INSTALL_RPATH: ${CMAKE_INSTALL_RPATH}")
|
||
|
message(STATUS "CMAKE_VERBOSE_MAKEFILE: ${CMAKE_VERBOSE_MAKEFILE}")
|
||
|
message(STATUS "CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}")
|
||
|
message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
|
||
|
message(STATUS "CMAKE_C_COMPILER: ${CMAKE_C_COMPILER} (id ${CMAKE_C_COMPILER_ID}, clang ${CLANG}, GNUC ${GNUC}, version ${CMAKE_C_COMPILER_VERSION})")
|
||
|
message(STATUS "CMAKE_AR: ${CMAKE_AR}")
|
||
|
message(STATUS "CMAKE_RANLIB: ${CMAKE_RANLIB}")
|
||
|
message(STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
|
||
|
message(STATUS "CMAKE_DEBUG_POSTFIX: ${CMAKE_DEBUG_POSTFIX}")
|
||
|
message(STATUS "")
|
||
|
|