Thread: CMake Help (losing my mind :(()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jul 2019
    Posts
    13

    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 . It only got .cpp (printed to json-output) . Something is missing ??
    Last edited by scorp08; 09-25-2019 at 07:35 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Segmentation fault: I am losing my mind :(
    By Median in forum C Programming
    Replies: 31
    Last Post: 11-06-2012, 01:29 PM
  2. Pipelines - please help, 6 hours and I am losing my mind.
    By Johnny_010 in forum C Programming
    Replies: 4
    Last Post: 04-04-2012, 02:06 PM
  3. Replies: 6
    Last Post: 03-18-2012, 10:11 PM
  4. Don't know if I'm losing my mind...
    By Invincible in forum C++ Programming
    Replies: 19
    Last Post: 05-26-2002, 11:27 PM
  5. Lost source... losing mind...
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 10-27-2001, 12:31 AM

Tags for this Thread