project(cbcanalyzer)


cmake_minimum_required(VERSION 2.4 FATAL_ERROR)

# Search for Qt 4 installation and set it up
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})

# Search for the Boost installation
find_package(Boost REQUIRED)

set(DEBUG 0)

if(DEBUG)
	# Set debug options flag
	add_definitions(-DDEBUG -g)
else(DEBUG)
	# Set optimization flag
	add_definitions(-O2)
endif(DEBUG)



IF(WIN32)
	SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-subsystem,windows")
	SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-subsystem,windows")
	SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-subsystem,windows")
ENDIF(WIN32)

add_subdirectory(src)
