diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-09-22 18:06:51 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-09-22 18:06:51 +0200 |
| commit | 676586f2034ff112b309dccc430893d73e919191 (patch) | |
| tree | 2571918ca87edde3fcb4cd5955a6051d535d57fa | |
| parent | 1212a302b500c37420613086a1b85f0659f09d57 (diff) | |
| download | ttwhy-676586f2034ff112b309dccc430893d73e919191.tar.xz ttwhy-676586f2034ff112b309dccc430893d73e919191.zip | |
apps: extract applications
| -rw-r--r-- | CMakeLists.txt | 15 | ||||
| -rw-r--r-- | apps/echo.cpp (renamed from ttwhy/main.cpp) | 0 |
2 files changed, 6 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 138a84a..337086f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,9 +81,6 @@ target_sources("ttwhy-core" PUBLIC "ttwhy/scanners/terminal_scanner.cppm" ) -target_include_directories("ttwhy-core" PUBLIC - "${CMAKE_SOURCE_DIR}" -) target_compile_features("ttwhy-core" PUBLIC "cxx_std_23" @@ -101,16 +98,16 @@ target_compile_options("ttwhy-core" PUBLIC "$<$<CXX_COMPILER_ID:Clang,GNU>:-pedantic-errors>" ) -### Main Executable +### Applications -add_executable("ttwhy") -add_executable("ttwhy::app" ALIAS "ttwhy") +add_executable("ttwhy-echo") +add_executable("ttwhy::echo" ALIAS "ttwhy-echo") -target_sources("ttwhy" PRIVATE - "ttwhy/main.cpp" +target_sources("ttwhy-echo" PRIVATE + "apps/echo.cpp" ) -target_link_libraries("ttwhy" PRIVATE +target_link_libraries("ttwhy-echo" PRIVATE "ttwhy::lib" ) diff --git a/ttwhy/main.cpp b/apps/echo.cpp index ab635a7..ab635a7 100644 --- a/ttwhy/main.cpp +++ b/apps/echo.cpp |
