Extract common main function of examples

This commit is contained in:
Jonathan Müller 2017-10-30 16:30:34 +01:00
commit 33d2523893
3 changed files with 75 additions and 54 deletions

View file

@ -3,7 +3,7 @@
# found in the top-level directory of this distribution.
function(_cppast_example name)
add_executable(cppast_example_${name} ${name}.cpp)
add_executable(cppast_example_${name} ${name}.cpp example_parser.hpp)
target_link_libraries(cppast_example_${name} PUBLIC cppast)
endfunction()