Project

General

Profile

Bug #1947 » CMakeLists.txt

Velvet Jones, 06/03/2013 05:12 PM

 
cmake_minimum_required(VERSION 2.8)

project(test)

set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set(Boost_USE_STATIC_LIBS OFF)
find_package (Boost COMPONENTS random)
find_package (Boost REQUIRED COMPONENTS thread filesystem system date_time regex program_options signals)
find_package (OpenSSL REQUIRED)
find_package(Wt REQUIRED)

include_directories(${Wt_INCLUDE_DIR})
add_executable(test main.cpp)
target_link_libraries(test ${Wt_HTTP_DEBUG_LIBRARY} ${Wt_DEBUG_LIBRARY} ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES})

(2-2/3)