Merge pull request #10 from xantares/patch-5 set CMAKE_BUILD_TYPE default
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e8731d2..6dcf8a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,11 @@
-project (dlfcn C)
-
cmake_minimum_required(VERSION 2.8)
+if (NOT DEFINED CMAKE_BUILD_TYPE)
+ set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type")
+endif ()
+
+project (dlfcn C)
+
option(BUILD_SHARED_LIBS "shared/static libs" ON)
option(USE_WINE "use wine for test" ON)
option(BUILD_TESTS "tests?" OFF)