diff --git a/CMakeLists.txt b/CMakeLists.txt index 25a604c..df56bc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,6 @@ project(getch C) set(CMAKE_C_STANDARD 11) add_library(getch SHARED getch.c getch.h) -add_executable(test test.c ) +add_executable(example example.c ) -target_link_libraries(test -L./build getch) \ No newline at end of file +target_link_libraries(example -L./build getch) \ No newline at end of file diff --git a/test.c b/example.c similarity index 78% rename from test.c rename to example.c index 6ce8915..6de058d 100644 --- a/test.c +++ b/example.c @@ -12,8 +12,5 @@ int main() { printf("Special Key : %d\n", key); } - key = _getch(); - printf("Anything left? : %d\n", key); - return 0; } \ No newline at end of file