blob: f14c696e5a0d105770fff633211ec812c7adaba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
cmake_minimum_required(VERSION 3.0...3.31)
project(pom)
if (MSVC)
add_compile_options(/W4)
else()
add_compile_options(-Wall -Wextra -Wpedantic -Wshadow)
endif()
add_library(pom-static STATIC pom.c)
add_library(pom SHARED pom.c)
add_executable(tests tests/errors.c tests/location.c tests/parsing.c tests/main.c)
target_include_directories(tests PRIVATE .)
target_link_libraries(tests pom-static)
|