Skip to content

Commit

Permalink
Fiddling yet again with CMakeLists.txt files.
Browse files Browse the repository at this point in the history
  • Loading branch information
deanberris committed Dec 5, 2011
1 parent e6d6335 commit 9dacc03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 2.6)
project(CPP-NETLIB)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTI_THREADED ON)
find_package( Boost 1.43.0 REQUIRED unit_test_framework system regex date_time thread filesystem )
find_package( Boost 1.45.0 REQUIRED unit_test_framework system regex date_time thread filesystem program_options)
find_package( OpenSSL )
find_package( Threads )
set(CMAKE_VERBOSE_MAKEFILE true)
Expand All @@ -19,6 +19,11 @@ endif()
if (Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
endif()

if (OpenSSL_FOUND)
add_definitions(-DBOOST_NETWORK_ENABLE_HTTPS)
endif()

enable_testing()
add_subdirectory(libs/network/src)
add_subdirectory(libs/network/test)
Expand Down
1 change: 1 addition & 0 deletions libs/network/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# boost_network_uri
include_directories(${CPP-NETLIB_SOURCE_DIR})

set(CPP-NETLIB_URI_SRCS uri/parse.cpp)
add_library(cppnetlib-uri-parsers ${CPP-NETLIB_URI_SRCS})

Expand Down

0 comments on commit 9dacc03

Please sign in to comment.