Re: [CMake] Creating filters (a.k.a. subdirectories) for Visual Studio projects

2009-03-03 Thread Michael Jackson
On Mar 3, 2009, at 8:56 AM, Eric Noulard wrote: 2009/3/3 Michael Jackson : On Mar 3, 2009, at 5:26 AM, Eric Noulard wrote: 2009/3/3 Michael Schantin : INCLUDE(${PROJECT_SOURCE_DIR}/mySubDir1/CMakeLists.txt) INCLUDE(${PROJECT_SOURCE_DIR}/mySubDir2/CMakeLists.txt) You usually don't "I

Re: [CMake] Creating filters (a.k.a. subdirectories) for Visual Studio projects

2009-03-03 Thread Eric Noulard
2009/3/3 Michael Jackson : > > > > On Mar 3, 2009, at 5:26 AM, Eric Noulard wrote: > >> 2009/3/3 Michael Schantin : >>> >>> >>> INCLUDE(${PROJECT_SOURCE_DIR}/mySubDir1/CMakeLists.txt) >>> INCLUDE(${PROJECT_SOURCE_DIR}/mySubDir2/CMakeLists.txt) >> >> You usually don't "INCLUDE" CMakeLists.txt >> you

Re: [CMake] Creating filters (a.k.a. subdirectories) for Visual Studio projects

2009-03-03 Thread Michael Jackson
On Mar 3, 2009, at 5:26 AM, Eric Noulard wrote: 2009/3/3 Michael Schantin : Hello, is there a possibility to generate those "filters" (a.k.a. subdirectories in .vcproj files) using CMake? I managed to generate several CMakeLists.txt files. One resides in the root directory, the other ones i

Re: [CMake] Creating filters (a.k.a. subdirectories) for Visual Studio projects

2009-03-03 Thread Michael Schantin
Hello, great. This is working like a charm. I am now using ADD_SUBDIRECTORY(mySubDir1) ADD_SUBDIRECTORY(mySubDir2) SOURCE_GROUP("Source Files\\mySubDir1" FILES myFirstFileInFirstDir.cpp mySecondFileInFirstDir.cpp) SOURCE_GROUP("Source Files\\mySubDir2" FILES myFirstFileInSecondDir.cpp mySecondFil

Re: [CMake] Creating filters (a.k.a. subdirectories) for Visual Studio projects

2009-03-03 Thread Eric Noulard
2009/3/3 Michael Schantin : > Hello, > > is there a possibility to generate those "filters" (a.k.a. > subdirectories in .vcproj files) using CMake? I managed to generate > several CMakeLists.txt files. One resides in the root directory, the > other ones in subdirectories. They are included like thi

[CMake] Creating filters (a.k.a. subdirectories) for Visual Studio projects

2009-03-03 Thread Michael Schantin
Hello, is there a possibility to generate those "filters" (a.k.a. subdirectories in .vcproj files) using CMake? I managed to generate several CMakeLists.txt files. One resides in the root directory, the other ones in subdirectories. They are included like this: INCLUDE(${PROJECT_SOURCE_DIR}/mySub