project(keycode) add_library(keycode STATIC src/keycode.c ) add_executable(keycode_test src/test.c ) target_link_libraries(keycode_test keycode )