I've got another problem with my project. I managed to get cmake to compile it, but make won't run through. I get the error message, that some headers are not found, so I checked my include_directories according to this questions answer: Listing include_directories in CMake
My include_directories has all specified folders listed as I want, but the makefile neither does include an "INC" tag nor does cmake-gui display the include_directories property. Has anyone encountered a similar or likewise problem an can help me?
Edit:
top level cmake:
PROJECT(MyProject)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
# set the compiler flags
SET(CMAKE_CXX_COMPILER g++)
SET(CMAKE_CXX_FLAGS "-fPIC -g -D DEBUG -Wall -Wfatal-errors -fstrict-aliasing")
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR}
${GLEW_INCLUDE_DIR}
${GLUT_INCLUDE_DIR}
${GSL_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${QT_INCLUDE_DIR}
${MyProject_SOURCE_DIR}/include)
and after that i've got some add_subdirectories. CMake runs without error, but make seems to ignore the last include_directories line.