IF(CMAKE_BUILD_TYPE MATCHES Debug)
	MESSAGE("Debug build.")
	ADD_DEFINITIONS(-DDEBUG)
ELSEIF(CMAKE_BUILD_TYPE MATCHES Release)
	MESSAGE("Release build.")
	ADD_DEFINITIONS(-DNDEBUG)
	ADD_DEFINITIONS(-DWITHOUT_TESTS)
ELSE()
	MESSAGE("Some other build type.")
ENDIF()
