From 5d8a1cf7155130bd8101090d7e1d0c2f90d9b123 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 10 Jul 2014 22:06:10 -0500 Subject: add initial CMake and Visual Studio build support This moves the compatibility include files from include to include/compat so we can use the awful MS C compiler <../include/> trick to emulate the GNU #include_next extension. This also removes a few old compat files we do not need anymore. --- tls/CMakeLists.txt | 22 ++++++++++++++++++++++ tls/Makefile.am | 1 + 2 files changed, 23 insertions(+) create mode 100644 tls/CMakeLists.txt (limited to 'tls') diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt new file mode 100644 index 0000000..3e61844 --- /dev/null +++ b/tls/CMakeLists.txt @@ -0,0 +1,22 @@ +include_directories( + . + ../include + ../include/compat +) + +set( + TLS_SRC + tls.c + tls_client.c + tls_config.c + tls_server.c + tls_util.c + tls_verify.c +) + + +if(NOT HAVE_STRCASECMP) + set(TLS_SRC ${TLS_SRC} strsep.c) +endif() + +add_library(tls ${TLS_SRC}) diff --git a/tls/Makefile.am b/tls/Makefile.am index e8c4713..82ec211 100644 --- a/tls/Makefile.am +++ b/tls/Makefile.am @@ -3,6 +3,7 @@ include $(top_srcdir)/Makefile.am.common lib_LTLIBRARIES = libtls.la EXTRA_DIST = VERSION +EXTRA_DIST += CMakeLists.txt libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined libtls_la_LIBADD = ../crypto/libcrypto.la ../ssl/libssl.la $(PLATFORM_LDADD) -- cgit v1.2.3-55-g6feb