-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
36 lines (29 loc) · 938 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required (VERSION 2.8 FATAL_ERROR)
project (libscep C)
set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
###############################################################################
include (CheckCSourceCompiles)
include (CheckCSourceRuns)
include (CheckFunctionExists)
include (CheckIncludeFile)
include (CheckIncludeFiles)
include (CheckLibraryExists)
include (CheckSymbolExists)
include (CheckTypeSize)
# Version
set (libscep_VERSION_MAJOR 0)
set (libscep_VERSION_MINOR 0)
configure_file (
"${PROJECT_SOURCE_DIR}/src/scep.h.in"
"${PROJECT_BINARY_DIR}/scep.h"
)
include_directories ("${PROJECT_BINARY_DIR}")
add_subdirectory (src)
# Unit tests
set (TEST_TARGETS configuration util scep)
add_subdirectory (tests)
enable_testing ()
foreach (target ${TEST_TARGETS})
add_test (NAME test_${target} COMMAND test_${target})
endforeach (target)
add_test (NAME test_message COMMAND test_message)