Got a very basic logger up and working. Can be used with the Q[LEVEL] macros. Still needs some work to add coloring to the console and to be able to write logs out to files.
15 lines
445 B
CMake
15 lines
445 B
CMake
cmake_minimum_required(VERSION 3.28.1)
|
|
|
|
project(quantum-utils)
|
|
|
|
set(quantum-src "./quantum/src/")
|
|
set(test_stuff-src "./test_stuff/src/")
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
add_library(quantum SHARED ${quantum-src}memory/zone.c
|
|
${quantum-src}logger/logger.c)
|
|
add_executable(test_stuff ${test_stuff-src}main.c)
|
|
|
|
target_link_libraries(test_stuff quantum)
|
|
target_include_directories(test_stuff PUBLIC ${quantum-src})
|