aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-07-21 22:21:14 -0500
committerBrent Cook <bcook@openbsd.org>2015-07-21 22:21:14 -0500
commita9122f74e0b965c7ecb5e8ceb8e3dfb682e14336 (patch)
tree39fcc3acb9de69b28875d5d9caaaf832a522fa8e /CMakeLists.txt
parent3614acd62e7dfccbd7c8f928559436775a43a6be (diff)
downloadportable-a9122f74e0b965c7ecb5e8ceb8e3dfb682e14336.tar.gz
portable-a9122f74e0b965c7ecb5e8ceb8e3dfb682e14336.tar.bz2
portable-a9122f74e0b965c7ecb5e8ceb8e3dfb682e14336.zip
add cmake tests
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6b5e011..5b55a5a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,8 +1,11 @@
1cmake_minimum_required (VERSION 3.2) 1cmake_minimum_required (VERSION 3.2)
2include(CheckFunctionExists) 2include(CheckFunctionExists)
3include(CheckIncludeFiles)
3 4
4project (LibreSSL) 5project (LibreSSL)
5 6
7enable_testing()
8
6if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD") 9if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
7 add_definitions(-DHAVE_ATTRIBUTE__BOUNDED__) 10 add_definitions(-DHAVE_ATTRIBUTE__BOUNDED__)
8endif() 11endif()
@@ -123,7 +126,18 @@ if(HAVE_MEMCMP)
123 add_definitions(-DHAVE_MEMCMP) 126 add_definitions(-DHAVE_MEMCMP)
124endif() 127endif()
125 128
129check_include_files(err.h HAVE_ERR_H)
130if(HAVE_ERR_H)
131 add_definitions(-DHAVE_ERR_H)
132endif()
133
134set(OPENSSL_LIBS ssl crypto)
135if(CMAKE_HOST_WIN32)
136 set(OPENSSL_LIBS ${OPENSSL_LIBS} ws2_32)
137endif()
138
126add_subdirectory(crypto) 139add_subdirectory(crypto)
127add_subdirectory(ssl) 140add_subdirectory(ssl)
128add_subdirectory(apps) 141add_subdirectory(apps)
129add_subdirectory(tls) 142add_subdirectory(tls)
143add_subdirectory(tests)