Add first example
This commit is contained in:
parent
6f128da87f
commit
6af95dde8e
6 changed files with 87 additions and 3 deletions
10
example/CMakeLists.txt
Normal file
10
example/CMakeLists.txt
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue