summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-06-21 20:19:27 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-06-22 11:13:20 +0800
commit2c466d30464b566c471a89c5528d768be7729445 (patch)
tree642f0184094576d45ddafcc669f68c913a77f04f /CMakeLists.txt
parentb9e7dc8ab73feef48c995b2b68c09e8a77940fc2 (diff)
style: remove uncessary comments and fixed clangd format
fix(server/client:read): correctly set good = false and cb when failed
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5937aa0..6641420 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,12 +36,10 @@ else()
message(STATUS "Configuring libsock in Release")
endif()
-# Separate source files and headers
file(GLOB_RECURSE PRIVATE_SOURCES CONFIGURE_DEPENDS "src/*.cpp")
file(GLOB_RECURSE PRIVATE_HEADERS CONFIGURE_DEPENDS "src/*.hpp")
file(GLOB_RECURSE PUBLIC_HEADERS CONFIGURE_DEPENDS "include/*.hpp")
-# Create list of all source files (private sources + public headers)
set(ALL_SOURCES ${PRIVATE_SOURCES} ${PUBLIC_HEADERS})
find_package(PkgConfig REQUIRED)
@@ -51,7 +49,7 @@ target_include_directories(
sock
PUBLIC "./include"
PRIVATE "./src"
- PRIVATE "./src/misc") # Add this so FileDescriptor.hpp can be found
+ PRIVATE "./src/misc")
set_target_properties(sock PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 1)
# tests add_custom_target(tests)
@@ -68,8 +66,9 @@ set_target_properties(sock PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 1)
#
# Installation
install(TARGETS sock)
-install(DIRECTORY "include/libsock"
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
- PATTERN "misc" EXCLUDE)
+install(
+ DIRECTORY "include/libsock"
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ PATTERN "misc" EXCLUDE)
install(FILES ${CMAKE_BINARY_DIR}/libsock.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)