You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
483 B
CMake

cmake_minimum_required(VERSION 2.8)
project(csoap)
add_definitions(-DUNICODE -D_UNICODE)
if(MSVC)
# Win7 (asio needs this)
add_definitions(-D_WIN32_WINNT=0x0601)
endif()
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
endif()
include_directories(${PROJECT_SOURCE_DIR}/src)
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
add_subdirectory(src)