refactor CMake

- allow compiling without microhttpd
- allow compiling without OpenSSL
- install `config.txt` with command `make install`
This commit is contained in:
psychocrypt
2017-04-12 21:15:36 +02:00
parent 00568d05e3
commit a8d40d15fd
3 changed files with 97 additions and 18 deletions
+4
View File
@@ -21,6 +21,8 @@
*
*/
#ifndef CONF_NO_HTTPD
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -142,3 +144,5 @@ bool httpd::start_daemon()
return true;
}
#endif