15 lines
540 B
CMake
15 lines
540 B
CMake
# Copyright (C) 2017-2022 Jonathan Müller and cppast contributors
|
|
# SPDX-License-Identifier: MIT
|
|
# found in the top-level directory of this distribution.
|
|
|
|
function(_cppast_example name)
|
|
add_executable(cppast_example_${name} ${name}.cpp example_parser.hpp)
|
|
target_link_libraries(cppast_example_${name} PUBLIC cppast cxxopts)
|
|
endfunction()
|
|
|
|
_cppast_example(ast_printer)
|
|
_cppast_example(comparison)
|
|
_cppast_example(documentation_generator)
|
|
_cppast_example(enum_category)
|
|
_cppast_example(enum_to_string)
|
|
_cppast_example(serialization)
|