Skip to content

Commit

Permalink
Extract library nntp to subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed Feb 19, 2024
1 parent a9269f1 commit fd01b2c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
10 changes: 1 addition & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,9 @@ if(WIN32)
add_library(curses ALIAS pdcurses)
endif()
find_package(BISON REQUIRED)
find_package(BoostAsio REQUIRED)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

add_library(nntp
nntpauth.cpp nntpauth.h
nntpclient.cpp nntpclient.h
nntpinit.cpp nntpinit.h
)
target_link_libraries(nntp PUBLIC boost::asio util)
set_property(TARGET nntp PROPERTY FOLDER Libraries)

add_library(tool
util3.cpp util3.h
)
Expand Down Expand Up @@ -139,6 +130,7 @@ source_group("Text Files" FILES ${trn_text_files})
target_link_libraries(trn PUBLIC libtrn)

add_subdirectory(config)
add_subdirectory(nntp)
add_subdirectory(parsedate)
add_subdirectory(util)
if(BUILD_TESTING)
Expand Down
11 changes: 11 additions & 0 deletions nntp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
find_package(BoostAsio REQUIRED)

add_library(nntp
nntpauth.cpp nntpauth.h
nntpclient.cpp nntpclient.h
nntpinit.cpp nntpinit.h
)
target_include_directories(nntp PUBLIC .)
target_include_directories(nntp PRIVATE ..)
target_link_libraries(nntp PUBLIC boost::asio util)
set_property(TARGET nntp PROPERTY FOLDER Libraries)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fd01b2c

Please sign in to comment.