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