cmake_minimum_required(VERSION 3.23) project(Juniorcamp C) set(CMAKE_C_STANDARD 99) add_executable(Juniorcamp main.c gfx.c) target_link_libraries(Juniorcamp imago m X11) target_link_directories(Juniorcamp PRIVATE /usr/local/lib/)