getch_c/CMakeLists.txt

9 lines
205 B
CMake
Raw Normal View History

2021-02-22 15:17:06 -08:00
cmake_minimum_required(VERSION 3.16)
project(getch C)
set(CMAKE_C_STANDARD 11)
add_library(getch SHARED getch.c getch.h)
2021-02-22 15:33:01 -08:00
add_executable(example example.c )
2021-02-22 15:17:06 -08:00
2021-02-22 15:33:01 -08:00
target_link_libraries(example -L./build getch)