-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
20 lines (16 loc) · 791 Bytes
/
CMakeLists.txt
File metadata and controls
20 lines (16 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cmake_minimum_required( VERSION 3.0 )
project( "libmem" )
set( LIBMEM_VERSION_MAJOR 1 )
set( LIBMEM_VERSION_MINOR 0 )
set( LIBMEM_VERSION_PATCH 0 )
set( LIBMEM_VERSION ${LIBMEM_VERSION_MAJOR}.${LIBMEM_VERSION_MINOR}.${LIBMEM_VERSION_PATCH} )
set( LIBMEM_ABI_VERSION ${LIBMEM_VERSION_MAJOR} )
set( VALGRIND_ENABLE True CACHE BOOL "Enable valgrind tests" )
set( VALGRIND_ARGS "--leak-check=full" "--error-exitcode=1" CACHE STRING "Valgrind arguments" )
find_program( VALGRIND valgrind DOC "Valgrind location (optional)" )
set( STRICT True CACHE BOOL "Enable strict mode (on by default)" )
if( STRICT )
set( CMAKE_C_FLAGS "-std=c90 -Wall -Wextra -Werror -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -pedantic-errors" )
endif( )
enable_testing( )
add_subdirectory( src )