Add ability to parse multiple files

This commit is contained in:
Joey Yakimowich-Payne 2023-02-14 13:45:23 -07:00
commit 738b0198c2
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
4 changed files with 284 additions and 113 deletions

View file

@ -2,14 +2,15 @@
# SPDX-License-Identifier: MIT
# found in the top-level directory of this distribution.
set (CMAKE_CXX_STANDARD 20)
add_executable(cppast_tool main.cpp)
target_link_libraries(cppast_tool PUBLIC cppast cxxopts)
set_target_properties(cppast_tool PROPERTIES CXX_STANDARD 11 OUTPUT_NAME cppast)
set_target_properties(cppast_tool PROPERTIES CXX_STANDARD 20 OUTPUT_NAME cppast)
install(TARGETS cppast_tool)
add_executable(cppcgen cppcgen.cpp)
target_link_libraries(cppcgen PUBLIC cppast cxxopts)
set_target_properties(cppcgen PROPERTIES CXX_STANDARD 11 OUTPUT_NAME cppcgen)
set_target_properties(cppcgen PROPERTIES CXX_STANDARD 20 OUTPUT_NAME cppcgen)
install(TARGETS cppcgen)