File: CMakeLists.txt

package info (click to toggle)
libgit2 1.9.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 60,804 kB
  • sloc: ansic: 203,436; javascript: 2,458; sh: 1,763; python: 384; perl: 99; php: 65; makefile: 33
file content (13 lines) | stat: -rw-r--r-- 463 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Header file validation project: ensure that we do not publish any sloppy
# definitions in our headers and that a consumer can include <git2.dll>
# even when they have aggressive C90 warnings enabled.

add_executable(headertest headertest.c)

target_include_directories(headertest PRIVATE ${LIBGIT2_INCLUDES})

if (MSVC)
	target_compile_options(headertest PUBLIC /W4 /WX)
else()
	target_compile_options(headertest PUBLIC -Wall -Wextra -pedantic -Werror)
endif()