24 lines
781 B
CMake
24 lines
781 B
CMake
cmake_minimum_required(VERSION 3.30)
|
|
project(splitter_draft C)
|
|
|
|
#include_directories(${CMAKE_SOURCE_DIR})
|
|
set(CMAKE_C_FLAGS "-Wall -Wextra -Werror=implicit-function-declaration -Werror=return-type --std=c99 -g -ggdb -O0")
|
|
|
|
add_compile_definitions(_POSIX_C_SOURCE=200112L )
|
|
|
|
add_executable(main src/l1/main.c)
|
|
|
|
add_executable(0_test src/l1/tests/t0.c)
|
|
add_executable(1_test src/l1/tests/t1.c)
|
|
|
|
add_executable(0_render_test src/l2/tests/r0.c)
|
|
target_link_libraries(0_render_test -lvulkan -lX11 -lm)
|
|
|
|
add_executable(0_play_test src/l3/tests/p0.c)
|
|
target_link_libraries(0_play_test -lncurses)
|
|
|
|
# Recursively collect all .h files in the src directory.
|
|
file(GLOB_RECURSE HEADER_FILES "${CMAKE_SOURCE_DIR}/src/*.h")
|
|
# Do not build utku
|
|
add_executable(utka src/l1/main.c ${HEADER_FILES})
|