From 7629de5b888bd3d1cdb94dce3ba51cb1e1c2e625 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 6 Apr 2023 15:45:39 -0400 Subject: pg: Add postgres support Supports migrations Change-Id: Ifca8358d4f57a4b417f1d972e400e98767e01bb5 --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ac2947..f26e300 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,12 +33,16 @@ find_package(fmt) string(ASCII 27 Esc) +find_library(PQXX_LIB pqxx) +find_library(PQ_LIB pq) + include(GNUInstallDirs) aux_source_directory("src" coresrc) add_executable(142bot ${coresrc}) include_directories("include") -target_link_libraries(142bot PRIVATE clog dpp fmt::fmt spdlog::spdlog pcre cpr::cpr) +target_link_libraries(142bot PRIVATE clog dpp fmt::fmt spdlog::spdlog pcre + cpr::cpr ${PQXX_LIB} ${PQ_LIB}) add_dependencies(142bot clog dpp cpr fmt spdlog) install(TARGETS 142bot) -- cgit v1.2.3