blob: 1f2f8ee3286886b4d1a71e0b302beab17d7bb1b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
cmake_minimum_required(VERSION 3.30.5)
project(kagamic VERSION 0.1 LANGUAGES C)
set(CMAKE_C_STANDARD 17)
file(GLOB SOURCES "src/*.c")
file(GLOB TEST_SOURCES "test/*.c")
add_compile_options(-Wall -pedantic -Wextra -march=native)
add_executable(main main.c ${SOURCES})
target_link_libraries(main m)
target_compile_options(main PRIVATE)
add_executable(test test.c ${SOURCES} ${TEST_SOURCES})
target_link_libraries(test m)
target_compile_options(test PRIVATE)
|