0

Qtcreator doesn't show include folder in "Projects" tab, but it doesn't complain, I can compile and debug my program, it doesn't underline includes yellow, nothing, just doesn't show ./include directory (which isn't empty and contains subdirectory: ./include/net/socket.hpp).

Screenshot

Here's my CMakeLists.txt:

cmake_minimum_required(VERSION 3.12)
project(pc-irc)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_COMPILER g++)
set(CMAKE_CXX_FLAGS_RELEASE -O3)

set(EXECUTABLE_NAME pc-irc)
set(EXECUTABLE_OUTPUT_PATH ./bin)
set(INCLUDE_DIR ./include)
set(SRC_DIR ./src)

file(GLOB SRCS
  ${SRC_DIR}/main.cpp
  )

include_directories(
  ${INCLUDE_DIR}
  ${INCLUDE_DIR}/*
  )

add_executable(${EXECUTABLE_NAME} ${SRCS})

I tried googling, but found nothing (except half-working workaround which doesn't allow to view subdirectories) in few hours. What am I missing? Debian 9, qtcreator 4.2.0, cmake 3.13.0

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.