Add first example

This commit is contained in:
Jonathan Müller 2017-10-30 16:21:13 +01:00
commit 6af95dde8e
6 changed files with 87 additions and 3 deletions

10
example/CMakeLists.txt Normal file
View file

@ -0,0 +1,10 @@
# Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
# This file is subject to the license terms in the LICENSE file
# found in the top-level directory of this distribution.
function(_cppast_example name)
add_executable(cppast_example_${name} ${name}.cpp)
target_link_libraries(cppast_example_${name} PUBLIC cppast)
endfunction()
_cppast_example(ast_printer)