mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-12-05 03:33:27 +01:00
25 lines
530 B
CMake
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()
|
|
|
|
|