Write cmake scripts for building the html manual
[mussa.git] / CMakeLists.txt
index d9a0563c61bd24934d33ac28de775e1b6a18ee99..e5ca03000c79ebf9c11fcfe7dc6930c78f2f9cd1 100644 (file)
@@ -1,16 +1,21 @@
 PROJECT(mussa)
 
 ENABLE_TESTING()
+CMAKE_MINIMUM_REQUIRED(VERSION 2.2)
+
 # try to include our cmake modules
 SET (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/makelib)
 
-# debug it!
-SET (CXX_FLAGS "-g")
+IF(NOT CMAKE_BUILD_TYPE)
+  SET (CMAKE_BUILD_TYPE Debug CACHE STRING
+      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
+      FORCE)
+ENDIF(NOT CMAKE_BUILD_TYPE)
 
 # all of our source files al relative to the root of our project
 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
+ADD_SUBDIRECTORY( doc )
 ADD_SUBDIRECTORY( alg )
-ADD_SUBDIRECTORY( gui )
-ADD_SUBDIRECTORY( py )
 ADD_SUBDIRECTORY( qui )
+ADD_SUBDIRECTORY( py )