sharkdp / dbg-macro

A dbg(…) macro for C++
MIT License
2.97k stars 257 forks source link

Add cmake package. #108

Closed gwankyun closed 3 years ago

gwankyun commented 3 years ago

After installed:

find_package(dbg_macro REQUIRED)

add_executable(${project})

target_sources(${project}
  PRIVATE
    src/main.cpp
)

target_link_libraries(${project} PRIVATE dbg_macro::dbg_macro)
sharkdp commented 3 years ago

Thank you for your contribution. Some description of what this provides would be nice. This does multiple things at once and also modifies the source code. Can we make a separate PR for the code and the CMake changes?