From d58e4e71685e63776acdac6d7821d82c3d6e5b16 Mon Sep 17 00:00:00 2001 From: falsycat Date: Wed, 22 Jun 2022 11:59:35 +0900 Subject: [PATCH] add CLI tool project --- CMakeLists.txt | 1 + blocky/CMakeLists.txt | 11 +++++++++++ blocky/main.cc | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100644 blocky/CMakeLists.txt create mode 100644 blocky/main.cc diff --git a/CMakeLists.txt b/CMakeLists.txt index f568143..d2c3f4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,4 +24,5 @@ set(BLOCKY_CXX_FLAGS add_subdirectory(thirdparty) add_subdirectory(liblocky) +add_subdirectory(blocky) add_subdirectory(playground) diff --git a/blocky/CMakeLists.txt b/blocky/CMakeLists.txt new file mode 100644 index 0000000..6bf5cfc --- /dev/null +++ b/blocky/CMakeLists.txt @@ -0,0 +1,11 @@ +add_executable(blocky) +target_compile_options(blocky PRIVATE ${BLOCKY_C_FLAGS}) + +target_sources(blocky + PUBLIC + main.cc +) +target_link_libraries(blocky + PUBLIC + liblocky +) diff --git a/blocky/main.cc b/blocky/main.cc new file mode 100644 index 0000000..452782a --- /dev/null +++ b/blocky/main.cc @@ -0,0 +1,8 @@ +#include + + +int main(int argc, char** argv) { + (void) argc; + (void) argv; + std::cout << "helloworld" << std::endl; +}