Lines Matching refs:clog
6 PROJECT(clog C CXX) project
16 OPTION(CLOG_BUILD_TESTS "Build clog tests" ON)
53 # ---[ clog library
54 ADD_LIBRARY(clog STATIC src/clog.c) target
55 SET_TARGET_PROPERTIES(clog PROPERTIES
58 CLOG_TARGET_RUNTIME_LIBRARY(clog)
59 SET_TARGET_PROPERTIES(clog PROPERTIES PUBLIC_HEADER include/clog.h)
60 TARGET_INCLUDE_DIRECTORIES(clog PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INS…
62 TARGET_COMPILE_DEFINITIONS(clog PRIVATE CLOG_LOG_TO_STDIO=1)
64 TARGET_COMPILE_DEFINITIONS(clog PRIVATE CLOG_LOG_TO_STDIO=0)
67 TARGET_LINK_LIBRARIES(clog PRIVATE log)
70 ADD_LIBRARY(cpuinfo::clog ALIAS clog)
72 INSTALL(TARGETS clog
78 # ---[ clog tests
90 ADD_EXECUTABLE(clog-test test/clog.cc)
91 SET_TARGET_PROPERTIES(clog-test PROPERTIES
94 CLOG_TARGET_RUNTIME_LIBRARY(clog-test)
95 TARGET_LINK_LIBRARIES(clog-test PRIVATE clog gtest gtest_main)
96 ADD_TEST(clog-test clog-test)