-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
33 lines (21 loc) · 1.03 KB
/
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
30
31
32
33
cmake_minimum_required(VERSION 3.6)
project(discordpp-rest-curlpp)
set(CMAKE_CXX_STANDARD 14)
###################
add_library(${PROJECT_NAME} INTERFACE)
# target_sources(${PROJECT_NAME} INTERFACE "${PROJECT_SOURCE_DIR}/discordpp")
add_subdirectory(lib/curlpp)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/curlpp/include/)
INCLUDE_DIRECTORIES(${discordpp_SOURCE_DIR} ${json_SOURCE_DIR})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} INTERFACE curlpp curl) #discordpp json
#[[
set(SOURCE_FILES discordpp/rest-curlpp.hh)
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
add_subdirectory(lib/curlpp)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/curlpp/include/)
target_include_directories (${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
# find_package(Boost REQUIRED system)
INCLUDE_DIRECTORIES(${discordpp_INCLUDE_DIRS} ${nlohmann_json_include_dir}) # ${Boost_INCLUDE_DIRS}
TARGET_LINK_LIBRARIES(${PROJECT_NAME} discordpp curlpp curl) # ${Boost_LIBRARIES}
]]