#CMakeLists.txt to build project using cmake
#run $cmake CMakeLists.txt

cmake_minimum_required(VERSION 2.6)

project(projet_cpe)


FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE(${QT_USE_FILE})

include_directories(header/)

file(
  GLOB_RECURSE 
  source_files
  src/* header/* 
)

QT4_WRAP_CPP(source_files_moc header/mywidget.hpp)


add_executable(
  projet_cpe
  ${source_files}
  ${source_files_moc}
)




set(CMAKE_CXX_FLAGS "-Wall -W -D_REENTRANT -g")

target_link_libraries(projet_cpe ${QT_LIBRARIES} )
