Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Why ProjectTree displays the full path to each source and header file ? (cmake project)
Forum Updated to NodeBB v4.3 + New Features

Why ProjectTree displays the full path to each source and header file ? (cmake project)

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 346 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    r3d9u11
    wrote on last edited by r3d9u11
    #1

    Hello.
    Why the ProjectTree displays the full path for each source and header file when the project was opened by soft link in Linux ?

    For example, direct access to CMakeLists.txt looks normally:
    alt text

    But when I try to open that project through the symlink, it looks ugly:
    alt text

    Any ideas how to fix it ? (except excluding the symlinks)

    Thanks

    artwawA 1 Reply Last reply
    0
    • R r3d9u11

      Hello.
      Why the ProjectTree displays the full path for each source and header file when the project was opened by soft link in Linux ?

      For example, direct access to CMakeLists.txt looks normally:
      alt text

      But when I try to open that project through the symlink, it looks ugly:
      alt text

      Any ideas how to fix it ? (except excluding the symlinks)

      Thanks

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @r3d9u11 include with local path?

      For more information please re-read.

      Kind Regards,
      Artur

      R 1 Reply Last reply
      0
      • artwawA artwaw

        @r3d9u11 include with local path?

        R Offline
        R Offline
        r3d9u11
        wrote on last edited by r3d9u11
        #3

        @artwaw yes, here is example of test CMakeLists.txt:

        cmake_minimum_required(VERSION 3.5)
        
        project(SingletonMultitone LANGUAGES CXX)
        
        set(CMAKE_CXX_STANDARD 17)
        set(CMAKE_CXX_STANDARD_REQUIRED ON)
        
        file(GLOB SOURCES RELATIVE  ${CMAKE_CURRENT_SOURCE_DIR} *.cpp* *.h*)
        
        add_executable(SingletonMultitone ${SOURCES})
        

        Simple_Project.zip

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved