aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2023-04-02 23:27:59 -0400
committerCara Salter <cara@devcara.com>2023-04-02 23:27:59 -0400
commit53913850062506ff1d98d9d12a46a70db4d6fb08 (patch)
tree1a68bb0bcb93b1c1be7fcc34517ce79f63e4b429
parentb310afa5172b7bc4e5f9098255fcc57d28fd9c78 (diff)
download142bot-53913850062506ff1d98d9d12a46a70db4d6fb08.tar.gz
142bot-53913850062506ff1d98d9d12a46a70db4d6fb08.zip
meta: Update CMakeLists
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
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)