View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014599CMakeCMakepublic2013-11-26 11:552016-06-10 14:31
ReporterGaleazzi 
Assigned ToAlex Neundorf 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.12 
Target VersionFixed in Version 
Summary0014599: Show sources out of CMakeLists directory in Project Explorer view of Eclipse
DescriptionIn many subprojects I've got some sources outside of CMakeLists directory. This is an example:
C:\Product1\project1\CMakeLists.txt
C:\SharedFiles\dir1\foo.cpp
C:\SharedFiles\dir1\foo.h

Should it be possible to add dir1 as linked folder or add foo.* as linked files?
In this way the
behavior of the Eclipse generator would be closer to the VS's one.
A previous discussion having the object "Eclipse: sources out of CMakeLists directory" is reported in the mailing list.
TagsNo tags attached.
Attached Filesrar file icon Example.rar [^] (748 bytes) 2013-11-27 05:16

 Relationships

  Notes
(0034581)
Eric NOULARD (developer)
2013-11-27 02:59

Here comes the ML reference
http://www.cmake.org/pipermail/cmake/2013-November/056483.html [^]

Andrea,

Could you provide us a minimal project example including
a *working* CMakeLists.txt and a couple of files.
Sommething like:

OutOfTree/Project/CMakeLists.txt
OUfOfTree/Project/Source/*
OutOfTree/OtherDir/foo.cpp
OutOfTree/OtherDir/foo.h

this should be enough to give us an example of what you want.
(0034584)
Galeazzi (reporter)
2013-11-27 05:37

That's an example:
#-------------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8.10)

# Project name
project(FooLib)

include_directories(C:/Lib)

set (TARGET_NAME_STATIC FooLib)
set (SRC_FooLIB
             ./Foo.h
             ./Foo.cpp
             C:/Lib/OtherHeader.h)

add_library(${TARGET_NAME_STATIC} ${SRC_FooLIB})

My idea is FooLib project should have:
1 - A linked directory to C:/Lib
or
2 - A virtual directory named something like C_Lib containing a linked file to OtherHeader.h.
With linked directory or linked file I mean what is described here: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-45.htm [^]

Let me know if I clarified my vague idea.

Thanks.
(0042434)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2013-11-26 11:55 Galeazzi New Issue
2013-11-27 02:59 Eric NOULARD Note Added: 0034581
2013-11-27 05:16 Galeazzi File Added: Example.rar
2013-11-27 05:37 Galeazzi Note Added: 0034584
2013-11-28 15:49 Alex Neundorf Assigned To => Alex Neundorf
2013-11-28 15:49 Alex Neundorf Status new => assigned
2016-06-10 14:29 Kitware Robot Note Added: 0042434
2016-06-10 14:29 Kitware Robot Status assigned => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team