diff options
author | Cara Salter <cara@devcara.com> | 2023-11-21 16:10:08 -0500 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2023-11-21 16:10:08 -0500 |
commit | f78c7cf82726324fcee6b738e3d670bee02ad3ff (patch) | |
tree | ece037cba4f701f67f22bdbd8f916f66a0e08036 /CMakeLists.txt | |
parent | be5e0dd226a29d1d45f94d02bb63c64defbe33fd (diff) | |
download | 142bot-f78c7cf82726324fcee6b738e3d670bee02ad3ff.tar.gz 142bot-f78c7cf82726324fcee6b738e3d670bee02ad3ff.zip |
no more cmake!
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 1192b50..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,48 +0,0 @@ -cmake_minimum_required(VERSION 3.0) -project(onefortytwobot VERSION 0.6 LANGUAGES CXX C) - -set(CMAKE_CXX_STANDARD 20 REQUIRED) -set(FETCHCONTENT_TRY_FIND_PACKAGE_MODE OPT_IN) - -list(APPEND CMAKE_MODULE_PATH - "${CMAKE_SOURCE_DIR}/cmake") - -find_package(spdlog REQUIRED) -find_package(dpp REQUIRED) -find_package(cpr REQUIRED) -find_package(sentry REQUIRED) -find_package(curl) - -include(cmake/FindPCRE.cmake) - -find_package(fmt) - -string(ASCII 27 Esc) - -find_library(PQXX_LIB pqxx) -find_library(PQ_LIB pq) - -# Define configuration file -configure_file(142bot.config.in 142bot_config.h) - -include(GNUInstallDirs) -aux_source_directory("src" coresrc) -add_executable(142bot ${coresrc}) - -include_directories("include" ${PROJECT_BINARY_DIR}) -target_link_libraries(142bot PRIVATE clog dpp fmt::fmt spdlog::spdlog pcre - cpr::cpr ${PQXX_LIB} ${PQ_LIB} sentry) - -install(TARGETS 142bot) - -set (modules_dir "modules") -file(GLOB subdirlist ${modules_dir}/*) -foreach (fullmodname ${subdirlist}) - get_filename_component(modname ${fullmodname} NAME) - message(STATUS "Found module '${Esc}[1;34mmodule_${modname}${Esc}[m'") - set (modsrc "") - aux_source_directory(${modules_dir}/${modname} modsrc) - add_library(module_${modname} SHARED ${modsrc}) - target_link_libraries(module_${modname} dpp cpr sentry) - set_target_properties(module_${modname} PROPERTIES PREFIX "") -endforeach(fullmodname) |