Skip to content

Commit

Permalink
Grouped components
Browse files Browse the repository at this point in the history
  • Loading branch information
bgs99 committed Jul 7, 2024
1 parent 1dd2b38 commit 8a45fdf
Show file tree
Hide file tree
Showing 36 changed files with 16 additions and 27 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

project(podrm LANGUAGES C CXX)

add_subdirectory(components)

if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
option(PFR_ORM_ASAN "Build podrm with address sanitizer" OFF)

Expand All @@ -16,3 +14,5 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)

include(CTest)
endif()

add_subdirectory(components)
7 changes: 3 additions & 4 deletions components/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_subdirectory(span)
add_subdirectory(reflection)
add_subdirectory(metadata)
add_subdirectory(sqlite)
add_subdirectory(postgres)
add_subdirectory(reflection)
add_subdirectory(databases)
add_subdirectory(utils)
2 changes: 2 additions & 0 deletions components/databases/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_subdirectory(postgres)
add_subdirectory(sqlite)
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ target_sources(podrm-postgres PRIVATE lib/connection.cpp lib/result.cpp
target_link_libraries(
podrm-postgres
PUBLIC podrm-metadata
PRIVATE PostgreSQL::PostgreSQL fmt::fmt)
PRIVATE podrm-multilambda PostgreSQL::PostgreSQL fmt::fmt)
target_include_directories(podrm-postgres PUBLIC include)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "detail/multilambda.hpp"
#include "formatters.hpp" // IWYU pragma: keep

#include <podrm/metadata.hpp>
#include <podrm/multilambda.hpp>
#include <podrm/postgres/detail/connection.hpp>
#include <podrm/postgres/detail/result.hpp>
#include <podrm/postgres/detail/str.hpp>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ target_sources(podrm-sqlite PRIVATE lib/connection.cpp lib/cursor.cpp
target_link_libraries(
podrm-sqlite
PUBLIC podrm-metadata
PRIVATE SQLite::SQLite3 fmt::fmt)
PRIVATE podrm-multilambda SQLite::SQLite3 fmt::fmt)
target_include_directories(podrm-sqlite PUBLIC include)

if(BUILD_TESTING)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "detail/multilambda.hpp"

#include <podrm/metadata.hpp>
#include <podrm/multilambda.hpp>
#include <podrm/span.hpp>
#include <podrm/sqlite/detail/connection.hpp>
#include <podrm/sqlite/detail/cursor.hpp>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "detail/multilambda.hpp"

#include <podrm/metadata.hpp>
#include <podrm/multilambda.hpp>
#include <podrm/span.hpp>
#include <podrm/sqlite/detail/cursor.hpp>
#include <podrm/sqlite/detail/result.hpp>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions components/sqlite/lib/detail/multilambda.hpp

This file was deleted.

2 changes: 2 additions & 0 deletions components/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_subdirectory(span)
add_subdirectory(multilambda)
2 changes: 2 additions & 0 deletions components/utils/multilambda/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_library(podrm-multilambda INTERFACE)
target_include_directories(podrm-multilambda INTERFACE SYSTEM include)
File renamed without changes.
File renamed without changes.

0 comments on commit 8a45fdf

Please sign in to comment.