diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2016-04-07 15:08:12 +0900 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2016-04-09 12:06:40 -0500 |
commit | 2510a5e6f98360bb7cd4a52ecf2274656fe75dcc (patch) | |
tree | 4ae888795d7c741f0c01eed81c8581d33b39cd07 /CMakeLists.txt | |
parent | 9a98de6c34d9fbb97f2619617c102691d6065a81 (diff) | |
download | portable-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.txt | 5 |
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) |
143 | endif() | 143 | endif() |
144 | 144 | ||
145 | check_function_exists(arc4random_uniform HAVE_ARC4RANDOM_UNIFORM) | ||
146 | if(HAVE_ARC4RANDOM_UNIFORM) | ||
147 | add_definitions(-DHAVE_ARC4RANDOM_UNIFORM) | ||
148 | endif() | ||
149 | |||
145 | check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO) | 150 | check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO) |
146 | if(HAVE_EXPLICIT_BZERO) | 151 | if(HAVE_EXPLICIT_BZERO) |
147 | add_definitions(-DHAVE_EXPLICIT_BZERO) | 152 | add_definitions(-DHAVE_EXPLICIT_BZERO) |