diff --git a/CMakeLists.txt b/CMakeLists.txt index d7379c9..64b36ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,7 +83,7 @@ target_sources(${PROJECT_NAME} PRIVATE src/ulib/log/log.cpp src/ulib/log/level.cpp ) -target_link_libraries(${PROJECT_NAME} PUBLIC fmt::fmt jsoncpp_static) +target_link_libraries(${PROJECT_NAME} PUBLIC fmt::fmt jsoncpp_static sqlpp11::sqlpp11) target_compile_definitions(${PROJECT_NAME} PRIVATE ULIB_LIBRARY_IMPL) target_include_directories(${PROJECT_NAME} PUBLIC 3party/inja diff --git a/tests/3party/sqlpp11/sqlpp11_unittest.cpp b/tests/3party/sqlpp11/sqlpp11_unittest.cpp index 2180533..69f04fa 100644 --- a/tests/3party/sqlpp11/sqlpp11_unittest.cpp +++ b/tests/3party/sqlpp11/sqlpp11_unittest.cpp @@ -1 +1,5 @@ #include +#include +#include + +TEST(sqlpp11, select) { select(sqlpp::value(false).as(sqlpp::alias::a)); } diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 779c746..7c653dd 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -14,6 +14,7 @@ add_executable(ulib_test ulib/system/timer_unittest.cpp 3party/inja/inja_unittest.cpp 3party/optional/optional_unittest.cpp + 3party/sqlpp11/sqlpp11_unittest.cpp ulib/utils/defer_unittest.cpp ) target_link_libraries(ulib_test PRIVATE