-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (26 loc) · 954 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cmake_minimum_required(VERSION 3.0.0)
project(client.c VERSION 0.1.0)
include(CTest)
enable_testing()
set(OPENSSL_ROOT_DIR /usr/include/openssl)
add_executable(varnish-encrypto src/encrypto.cpp)
#add_definitions(-DDEBUG)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
set(THREADS_PREFER_PTHREAD_FLAG ON)
include(CPack)
set( OPENSSL_ROOT_DIR "/opt/homebrew/opt/[email protected]")
find_package(OpenSSL REQUIRED)
if ( OPENSSL_FOUND )
message(STATUS "OpenSSL Found: ${OPENSSL_VERSION}")
message(STATUS "OpenSSL Include: ${OPENSSL_INCLUDE_DIR}")
message(STATUS "OpenSSL Libraries: ${OPENSSL_LIBRARIES}")
endif()
target_link_libraries(varnish-encrypto pthread)
target_link_libraries(varnish-encrypto ${OPENSSL_LIBRARIES})
target_include_directories(varnish-encrypto PUBLIC
/opt/homebrew/opt/[email protected]/lib
/opt/homebrew/opt/[email protected]/include
${CMAKE_CURRENT_LIST_DIR}/src
Threads::Threads
)