Skip to content

Commit

Permalink
Merge pull request #8 from wtlgo/install-dev
Browse files Browse the repository at this point in the history
Update CMakeLists.txt
  • Loading branch information
wtlgo authored Apr 23, 2020
2 parents 0626357 + 0f21f3c commit 091e97d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,23 @@ include_guard(GLOBAL)
project(
Network
LANGUAGES CXX
VERSION 3.2.0
VERSION 4.0.0
)

find_package(CURL REQUIRED)

include_directories(include ${CURL_INCLUDE_DIR})

add_library(Network STATIC src/Network.cpp)
add_library(Network src/Network.cpp include/wtlgo/Network.hpp)
target_compile_features(Network PUBLIC cxx_std_17)
target_link_libraries(Network PUBLIC ${CURL_LIBRARIES})

target_include_directories(Network INTERFACE ${PROJECT_SOURCE_DIR}/include/)
target_include_directories(Network PRIVATE ${PROJECT_SOURCE_DIR}/include/wtlgo/)
set_target_properties(Network PROPERTIES PUBLIC_HEADER ${PROJECT_SOURCE_DIR}/include/wtlgo/Network.hpp)
target_include_directories(Network PUBLIC include/)
target_include_directories(Network PRIVATE include/wtlgo/ ${CURL_INCLUDE_DIR})
set_target_properties(Network PROPERTIES PUBLIC_HEADER include/wtlgo/Network.hpp)

install(
TARGETS Network
LIBRARY DESTINATION lib COMPONENT Runtime
ARCHIVE DESTINATION lib COMPONENT Development
LIBRARY DESTINATION lib/wtlgo COMPONENT Runtime
ARCHIVE DESTINATION lib/wtlgo COMPONENT Development
PUBLIC_HEADER DESTINATION include/wtlgo COMPONENT Development
)

Expand Down

0 comments on commit 091e97d

Please sign in to comment.