Rename test.c to example.c
This commit is contained in:
parent
42902a9521
commit
4893b45e1e
|
@ -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)
|
||||
target_link_libraries(example -L./build getch)
|
|
@ -12,8 +12,5 @@ int main() {
|
|||
printf("Special Key : %d\n", key);
|
||||
}
|
||||
|
||||
key = _getch();
|
||||
printf("Anything left? : %d\n", key);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue