-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (23 loc) · 829 Bytes
/
CMakeLists.txt
File metadata and controls
32 lines (23 loc) · 829 Bytes
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
30
31
32
cmake_minimum_required(VERSION 3.0.0)
project(poco-http-curl VERSION 0.1.0)
# include(GoogleTest)
# enable_testing()
set(CMAKE_CXX_STANDARD 17)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
set(BINARY_R ${PROJECT_NAME})
set(BINARY_T ${PROJECT_NAME}-test)
set(BINARY_LIB ${PROJECT_NAME}-lib)
# include_directories(src)
# Cretaing List of components used of OpenSSL
set(OPENSSL_LIB SSL Crypto)
set(OPENSSL_LIB_LINK ${OPENSSL_LIB})
list(TRANSFORM OPENSSL_LIB_LINK PREPEND OpenSSL::)
# Cretaing List of components used of Poco
set(POCO_LIB Foundation Net Util NetSSL)
set(POCO_LIB_LINK ${POCO_LIB})
list(TRANSFORM POCO_LIB_LINK PREPEND Poco::)
# Adding Sub Directories to be parsed and look for CMakeList.txt in those dir
add_subdirectory(src)
add_subdirectory(test)