diff --git a/.gitignore b/.gitignore
index 17581269e7..249c560a12 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,8 +31,11 @@ install_manifest.txt
*.suo
*.ncb
*/Debug/*
+*/*/Debug/*
*/Release/*
+*/*/Release/*
*/RelWithDebInfo/*
+*/*/RelWithDebInfo/*
objs_shared/
objs_static/
diff --git a/CMakeLists.txt b/CMakeLists.txt
index acc019cc77..70edccefb7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,6 @@
+############ Setup project and cmake
+
# Project name
project (websocketpp)
@@ -6,20 +8,98 @@ project (websocketpp)
# 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