Extract common main function of examples
This commit is contained in:
parent
6af95dde8e
commit
33d2523893
3 changed files with 75 additions and 54 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue