From e039a57ee0768d883ee40cb2eb8803da82e10a8e Mon Sep 17 00:00:00 2001 From: Jonne Nauha Date: Mon, 1 Apr 2013 17:48:47 +0300 Subject: [PATCH] CMake prebuild system: Initial commit that has most of the basics down. Only tested on windows atm. TODO: Properly support examples, tests and cpp11 defines to build websocketpp in different setups. --- .gitignore | 19 ++++++++ CMakeLists.txt | 96 ++++++++++++++++++++++++++++++++++++++ cmake/CMakeHelpers.cmake | 86 ++++++++++++++++++++++++++++++++++ examples/CMakeLists.txt | 17 +++++++ websocketpp/CMakeLists.txt | 28 +++++++++++ 5 files changed, 246 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 cmake/CMakeHelpers.cmake create mode 100644 examples/CMakeLists.txt create mode 100644 websocketpp/CMakeLists.txt diff --git a/.gitignore b/.gitignore index 0773b88660..17581269e7 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,25 @@ *.so.?.?.? *.a *.dylib +lib/* + +# CMake +*.cmake +*.dir +CMakeFiles +INSTALL.* +ZERO_CHECK.* +CMakeCache.txt +install_manifest.txt + +# Windows/Visual Studio +*.vcproj* +*.sln +*.suo +*.ncb +*/Debug/* +*/Release/* +*/RelWithDebInfo/* objs_shared/ objs_static/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000000..acc019cc77 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,96 @@ + +# Project name +project (websocketpp) + +# Minimum cmake requirement. We should require a quite recent +# cmake for the dependency find macros etc. to be up to date. +cmake_minimum_required (VERSION 2.5) + +# Include our cmake macros +set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} cmake) +include (CMakeHelpers) + +# Build customization: +# - Override from command line "CMake -D