CMake Help (losing my mind :(()
Hello AllVery basic question that I spent many hours. I am using codeblock IDE and cmake. I have a file layout as "documents/exp/asrc.cpp" and "documents/exp/aheader.h". Source and header files in the same folder. The problem is no matter what I tried in CMakeLists, Cmake-gui did not see the header files.I tried almot everything like
Code:
cmake_minimum_required(VERSION 2.4)
project(aproject)
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${CMAKE_SOURCE_DIR})
target_include_directories(atarget ${CMAKE_SOURCE_DIR})
add_executable(app asrc.cpp)
To be honest I did not understand anything about cmake as there is not much resource and completely angry as it is a very basic step :mad:. It only got .cpp (printed to json-output) . Something is missing ??