Hi.
What I would like to accomplish:
In the MS VC7.1 .Net IDE
In the Solution Explorer, inside my project's folder, at the same level as
the 'Source Files' folder, I would like to create a 2nd folder 'Include
Files' that would contain/display the ".hpp" files for my project.
My source tree
Steve Johns wrote:
Hi.
What I would like to accomplish:
In the MS VC7.1 .Net IDE
In the Solution Explorer, inside my project's folder, at the same level
as the 'Source Files' folder, I would like to create a 2nd folder
'Include Files' that would contain/display the ".hpp" files for my projec
SOURCE_FILES( "Include Files" FILES afile.hpp bfile.hpp )
This just assigns a group to the source files, but they still have to be
explicitly added to the source list of a target.
So, with a source dir tree like this:
ProjDir
src
incl
lib
into which directory's CMakelists.txt fil
Steve Johns wrote:
ProjDir
src
incl
lib
into which directory's CMakelists.txt file should I put the
SOURCE_FILES( "Include Files" FILES x.hpp y.hpp )
command, and could this:
ADD_LIBRARY( MyLibProj x.cpp y.cpp x.hpp y.hpp )
The source and header files will not magically be
The source and header files will not magically be found in other
directories. You have to tell CMake where to find them. Try this in the
top-level CMakeLists.txt file:
ADD_LIBRARY(mylib src/x.cpp incl/x.hpp)
SOURCE_GROUP("Include Files" FILES incl/x.hpp)
Basically source files have to be nam