MushMachine/framework/logger/CMakeLists.txt
Green Sky 6b06d5cb99 update all cmake files to version 3.9
other misc cmake fixes

version 3.9 allows for ipo (lto)
2022-05-03 19:33:19 +02:00

25 lines
530 B
CMake

cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
project(logger CXX)
file(GLOB_RECURSE CPP_FILES src/*.cpp)
file(GLOB_RECURSE HPP_FILES src/*.hpp)
add_library(logger ${CPP_FILES} ${HPP_FILES})
target_include_directories(logger PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
#target_compile_definitions(logger PUBLIC SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_TRACE)
target_compile_definitions(logger PUBLIC SPDLOG_ACTIVE_LEVEL=0)
target_link_libraries(logger
spdlog
tracy_client
)
#if (BUILD_TESTING)
#add_subdirectory(test)
#endif()