From 5a40295c4cf0af5ea8da9ced04a4ce7d3621a080 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 16 Jul 2023 02:03:33 +0200 Subject: Squashed 'flatcc/' content from commit 473da2a git-subtree-dir: flatcc git-subtree-split: 473da2afa5ca435363f8c5e6569167aee6bc31c5 --- src/cli/CMakeLists.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/cli/CMakeLists.txt (limited to 'src/cli/CMakeLists.txt') diff --git a/src/cli/CMakeLists.txt b/src/cli/CMakeLists.txt new file mode 100644 index 0000000..40facac --- /dev/null +++ b/src/cli/CMakeLists.txt @@ -0,0 +1,20 @@ +include_directories ( + "${PROJECT_SOURCE_DIR}/include" + "${PROJECT_SOURCE_DIR}/config" +) + +add_executable(flatcc_cli + flatcc_cli.c +) + +target_link_libraries(flatcc_cli + flatcc +) + +# Rename because the libflatcc library and the flatcc executable would +# conflict if they had the same target name `flatcc`. +set_target_properties(flatcc_cli PROPERTIES OUTPUT_NAME flatcc) + +if (FLATCC_INSTALL) + install(TARGETS flatcc_cli DESTINATION bin) +endif() -- cgit v1.2.3