add CLI tool project

This commit is contained in:
falsycat 2022-06-22 11:59:35 +09:00
parent 9e43846770
commit d58e4e7168
3 changed files with 20 additions and 0 deletions

View File

@ -24,4 +24,5 @@ set(BLOCKY_CXX_FLAGS
add_subdirectory(thirdparty)
add_subdirectory(liblocky)
add_subdirectory(blocky)
add_subdirectory(playground)

11
blocky/CMakeLists.txt Normal file
View File

@ -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
)

8
blocky/main.cc Normal file
View File

@ -0,0 +1,8 @@
#include <iostream>
int main(int argc, char** argv) {
(void) argc;
(void) argv;
std::cout << "helloworld" << std::endl;
}