From b882174ae777b31a6ea16a42b100040dc1b103eb Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Fri, 19 Jan 2024 17:33:19 +0100 Subject: [PATCH] add boost thread, glm --- CMakeLists.txt | 5 ++++- cmake/CompilerWarnings.cmake | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fedfb6c..103ada9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,19 +95,22 @@ set(PRJ_LIBRARIES protocol ${LUA_LIBRARIES} zstd::libzstd_static + Boost::thread + glm::glm ) # add dependency find_package calls and similar here find_package(fmt CONFIG REQUIRED) find_package(OpenSSL REQUIRED) find_package(doctest CONFIG REQUIRED) -find_package(Boost REQUIRED) +find_package(Boost REQUIRED COMPONENTS thread) find_package(httplib CONFIG REQUIRED) find_package(libzip CONFIG REQUIRED) find_package(RapidJSON CONFIG REQUIRED) find_package(sol2 CONFIG REQUIRED) find_package(toml11 CONFIG REQUIRED) find_package(zstd CONFIG REQUIRED) +find_package(glm CONFIG REQUIRED) include_directories(include) diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index c654ec0..fedf62e 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -72,6 +72,7 @@ function(set_project_warnings project_name) -Werror=strict-aliasing -fstrict-aliasing -Werror=missing-declarations -Werror=ctor-dtor-privacy + -Wno-missing-field-initializers -Wswitch-default -Werror=unused-result -Werror=implicit-fallthrough