From 53913850062506ff1d98d9d12a46a70db4d6fb08 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sun, 2 Apr 2023 23:27:59 -0400 Subject: meta: Update CMakeLists --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 471adb7..5ac2947 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,8 @@ aux_source_directory("src" coresrc) add_executable(142bot ${coresrc}) include_directories("include") -target_link_libraries(142bot clog dpp fmt spdlog pcre cpr::cpr) +target_link_libraries(142bot PRIVATE clog dpp fmt::fmt spdlog::spdlog pcre cpr::cpr) +add_dependencies(142bot clog dpp cpr fmt spdlog) install(TARGETS 142bot) @@ -50,6 +51,8 @@ foreach (fullmodname ${subdirlist}) set (modsrc "") aux_source_directory(${modules_dir}/${modname} modsrc) add_library(module_${modname} SHARED ${modsrc}) + add_dependencies(module_${modname} dpp cpr spdlog fmt) + target_link_libraries(module_${modname} dpp cpr) install(TARGETS module_${modname} RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/142bot/") set_target_properties(module_${modname} PROPERTIES PREFIX "") endforeach(fullmodname) -- cgit v1.2.3