aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2016-04-07 15:08:12 +0900
committerBrent Cook <bcook@openbsd.org>2016-04-09 12:06:40 -0500
commit2510a5e6f98360bb7cd4a52ecf2274656fe75dcc (patch)
tree4ae888795d7c741f0c01eed81c8581d33b39cd07 /CMakeLists.txt
parent9a98de6c34d9fbb97f2619617c102691d6065a81 (diff)
downloadportable-2510a5e6f98360bb7cd4a52ecf2274656fe75dcc.tar.gz
portable-2510a5e6f98360bb7cd4a52ecf2274656fe75dcc.tar.bz2
portable-2510a5e6f98360bb7cd4a52ecf2274656fe75dcc.zip
modify cmake to build nc
- modify structure of CMakeLists.txt under apps/ * move apps/CMakeLists.txt to apps/openssl/ since this is for openssl build * create new apps/nc/CMakeLists.txt for nc build * modify apps/CMakeLists.txt just add_subdirectory() - add checking and compile of arc4random_uniform() - add installing man files, openssl.1 and nc.1
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 14a1ae1..c9ce99d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -142,6 +142,11 @@ if(HAVE_ARC4RANDOM_BUF)
142 add_definitions(-DHAVE_ARC4RANDOM_BUF) 142 add_definitions(-DHAVE_ARC4RANDOM_BUF)
143endif() 143endif()
144 144
145check_function_exists(arc4random_uniform HAVE_ARC4RANDOM_UNIFORM)
146if(HAVE_ARC4RANDOM_UNIFORM)
147 add_definitions(-DHAVE_ARC4RANDOM_UNIFORM)
148endif()
149
145check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO) 150check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO)
146if(HAVE_EXPLICIT_BZERO) 151if(HAVE_EXPLICIT_BZERO)
147 add_definitions(-DHAVE_EXPLICIT_BZERO) 152 add_definitions(-DHAVE_EXPLICIT_BZERO)