Fix building examples

Add finding OpenSSL for examples (on Mac it's common for OpenSSL
installed via Homebrew to not be on normal paths, so find it via
CMAKE_PREFIX_PATH). Also make the example cmake helper script
executable.
This commit is contained in:
Michael Smith 2016-03-12 15:09:03 -08:00
parent 9b8b6b6c46
commit 7657373fe3
2 changed files with 2 additions and 1 deletions

View File

@ -17,8 +17,9 @@ set(ENV{PKG_CONFIG_PATH} "${PKG_CONFIG_CHANGED_PATH}")
find_package(LibtorrentRasterbar REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
find_package(OpenSSL REQUIRED)
include_directories(${LibtorrentRasterbar_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
include_directories(${LibtorrentRasterbar_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
add_definitions(${LibtorrentRasterbar_DEFINITIONS})
set(single_file_examples

0
examples/run_cmake.sh.in Normal file → Executable file
View File