diff --git a/CMakeLists.txt b/CMakeLists.txt index 036843c..b9e8241 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,27 +58,27 @@ if (${ENABLE_COVERAGE}) list(APPEND LINKER_FLAGS gcov) endif () -option(BUILD_SHARED_LIBS "Build package with shared libraries." ON) -option(ASSIMP_NO_EXPORT "Disable Assimp's export functionality." ON) -option(ASSIMP_INSTALL "Disable this if you want to use assimp as a submodule." OFF) -option(ASSIMP_BUILD_ZLIB "Build your own zlib" OFF) -option(ASSIMP_BUILD_TESTS "If the test suite for Assimp is built in addition to the library." OFF) -option(ASSIMP_WARNINGS_AS_ERRORS "Treat all warnings as errors." OFF) -option(ASSIMP_INSTALL_PDB "Install MSVC debug files." OFF) -option(ASSIMP_INJECT_DEBUG_POSTFIX "Inject debug postfix in .a/.so/.dll lib names" OFF) +set(BUILD_SHARED_LIBS ON) +set(ASSIMP_NO_EXPORT ON) +set(ASSIMP_INSTALL OFF) +set(ASSIMP_BUILD_ZLIB OFF) +set(ASSIMP_BUILD_TESTS OFF) +set(ASSIMP_WARNINGS_AS_ERRORS OFF) +set(ASSIMP_INSTALL_PDB OFF) +set(ASSIMP_INJECT_DEBUG_POSTFIX OFF) if (CMAKE_BUILD_TYPE STREQUAL "Debug") - option(ASSIMP_INJECT_DEBUG_POSTFIX "Inject debug postfix in .a/.so/.dll lib names" ON) + set(ASSIMP_INJECT_DEBUG_POSTFIX ON) else () - option(ASSIMP_INJECT_DEBUG_POSTFIX "Inject debug postfix in .a/.so/.dll lib names" OFF) + set(ASSIMP_INJECT_DEBUG_POSTFIX OFF) endif () add_subdirectory(external/assimp EXCLUDE_FROM_ALL) -option(SPDLOG_ENABLE_PCH "Build static or shared library using precompiled header to speed up compilation time" ON) -option(SPDLOG_BUILD_WARNINGS "Enable compiler warnings" ON) -option(SPDLOG_PREVENT_CHILD_FD "Prevent from child processes to inherit log file descriptors" ON) -option(SPDLOG_NO_THREAD_ID "prevent spdlog from querying the thread id on each log call if thread id is not needed" ON) -option(SPDLOG_NO_TLS "prevent spdlog from using thread local storage" ON) -option(SPDLOG_NO_ATOMIC_LEVELS "prevent spdlog from using of std::atomic log levels (use only if your code never modifies log levels concurrently" ON) +set(SPDLOG_ENABLE_PCH ON) +set(SPDLOG_BUILD_WARNINGS ON) +set(SPDLOG_PREVENT_CHILD_FD ON) +set(SPDLOG_NO_THREAD_ID ON) +set(SPDLOG_NO_TLS ON) +set(SPDLOG_NO_ATOMIC_LEVELS ON) add_subdirectory(external/spdlog EXCLUDE_FROM_ALL) add_executable(LearnGtk4 main.cpp