summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 15f0ce82f6cc26e88a89e62916d4c17f50d3ad25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required(VERSION 3.2)
project(
  lily-test
  VERSION 0.1.0
  DESCRIPTION "A super-simple C test framework")

string(LENGTH "${CMAKE_SOURCE_DIR}/" SOURCE_PATH_SIZE)
add_definitions("-DSOURCE_PATH_SIZE=${SOURCE_PATH_SIZE}")

include_directories(${CMAKE_SOURCE_DIR})
set (TEST_SRC ${CMAKE_SOURCE_DIR}/tests)
add_executable(lily-metatest
  ${TEST_SRC}/main.c
  ${TEST_SRC}/helpers.c
  ${TEST_SRC}/macro-tests.c
  )
set_target_properties(lily-metatest PROPERTIES
  C_STANDARD 90
  CMAKE_C_FLAGS "-Wall -Wextra -Werror -Wfatal-errors -Wpedantic -pedantic-errors")