kjellkod / g3log_example_integration Goto Github PK
View Code? Open in Web Editor NEWExample project of how to integrate with g3log
License: The Unlicense
Example project of how to integrate with g3log
License: The Unlicense
Hello, I saw your recent issue about the missing lib where you were linking this repo.
Would you be interested by the integration with cmake fetch-content (see below)? I like it because I don't need to install anything before running my cmake, it will fetch your repo online and do the integration itself.
I had the same problem of missing static library but it is fixed now by adding the G3_SHARED_LIB to OFF
cmake_minimum_required (VERSION 3.11)
FetchContent_Declare(
g3log
GIT_REPOSITORY https://github.com/KjellKod/g3log.git
GIT_SHALLOW ON
GIT_TAG 1.3.3
)
message(STATUS "Populating g3log...")
set(ADD_G3LOG_UNIT_TEST OFF CACHE INTERNAL "")
set(ADD_FATAL_EXAMPLE OFF CACHE INTERNAL "")
set(ADD_G3LOG_BENCH_PERFORMANCE OFF CACHE INTERNAL "")
set(USE_DYNAMIC_LOGGING_LEVELS ON CACHE INTERNAL "")
set(INSTALL_G3LOG OFF CACHE INTERNAL "")
set(G3_SHARED_LIB OFF CACHE INTERNAL "")
FetchContent_MakeAvailable(g3log)
message(STATUS "Done.")
FetchContent_GetProperties(g3log)
include_directories(BEFORE SYSTEM "${g3log_SOURCE_DIR}/src")
include_directories(BEFORE SYSTEM "${g3log_BINARY_DIR}/include")
target_link_libraries(falcon g3logger)
note: I know I am still using g3logger instead of g3log because I am fetching from your tag 1.3.3, not the master branch. Once you will do a new release, I will update it.
I thought it could eventually interested you but i did not test it with your specific example. Thank you for this awesome lib!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.