[CMake] (no subject)
http://bit.ly/1TOTr0m?675=bebenuci&991&lenuk==33306881 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
Re: [CMake] good open source IDE
I have used kdevelop a lot for C/C++ and I found that it still not mature enough. Lots of bugs and features that do not work very well. Then I switched to netbeans (for C/C++). I found it very good. I use it only as a text editor and source browser for jumping to function and variable definitions and declarations. Its grep (find in files) doesnt work very well. I found kdevelop's grep much better. Both kdevelop's and netbean's integration with GDB is bad. I use DDD for debugging. overall I prefer netbeans to kdevelop. Abhijeet Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] integrating cmake project with third party project
Hi I am using cmake for my project. My project has a dependency which is a 3rd party makefile based project. I want cmake to just go to the other project directory and execute make over there and come back. I want this to be done when I type make. Is there any way to do it? I tried using EXEC_PROGRAM() with a script file, but it keeps building the other project in the background when the ccmake UI is still on. I don't want that. Regards Abhijeet Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: Re: [CMake] moving project folder
HI David Actually I wanted to change the compiler from g++ to m68k-g++ (compiler for motorola architecture) so I just edited CMakeCache.txt where it was defined. I think I did it all wrong and should have put something in CMakeLists.txt instead of CMakeCache.txt. Could you tell me how to change the compiler in CMakeLists.txt ? Thanks a lot Abhijeet David Cole <[EMAIL PROTECTED]> wrote: Do *not* distribute CMakeCache.txt. It simply will not work. CMake must be run against CMakeLists.txt to produce CMakeCache.txt (and all the rest of the initial binary tree) on each target build machine... On 6/8/07, abhijeet mhatre <[EMAIL PROTECTED]> wrote: > Hi > I configure cmake by writing a CMakeLists.txt file in a source folder. > It runs fine. > > Now if I move the folder to some other location, cmake complains that the > files still refer to the previous location. Then I have to edit > CMakeCache.txt and replace the project path at 3-4 there. Then it works > fine. > > Is there any elegant way to do this. >>Do out-of-source builds. When you want the output to appear somewhere >>else, nuke the output directory and start over. >>http://www.cmake.org/Wiki/CMake_FAQ You cannot simply move CMake >>output directories around in the filesystem. They use hardcoded >>absolute paths for safety, so if you want them somewhere else you must >>regenerate them. Suppose if I want distribute my project with the source code, CMake files and all, how do I do this? I dont mind regenerating build files using "cmake ." but I dont want to edit the CMakeLists.txt and CMakeCache.txt when I distriubute my project. Is this doable? regards Abhijeet - Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake - Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: Re: [CMake] moving project folder
> Hi > I configure cmake by writing a CMakeLists.txt file in a source folder. > It runs fine. > > Now if I move the folder to some other location, cmake complains that the > files still refer to the previous location. Then I have to edit > CMakeCache.txt and replace the project path at 3-4 there. Then it works > fine. > > Is there any elegant way to do this. >>Do out-of-source builds. When you want the output to appear somewhere >>else, nuke the output directory and start over. >>http://www.cmake.org/Wiki/CMake_FAQ You cannot simply move CMake >>output directories around in the filesystem. They use hardcoded >>absolute paths for safety, so if you want them somewhere else you must >>regenerate them. Suppose if I want distribute my project with the source code, CMake files and all, how do I do this? I dont mind regenerating build files using "cmake ." but I dont want to edit the CMakeLists.txt and CMakeCache.txt when I distriubute my project. Is this doable? regards Abhijeet - Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] moving project folder
Hi I configure cmake by writing a CMakeLists.txt file in a source folder. It runs fine. Now if I move the folder to some other location, cmake complains that the files still refer to the previous location. Then I have to edit CMakeCache.txt and replace the project path at 3-4 there. Then it works fine. Is there any elegant way to do this. regards abhijeet - Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search.___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] how to use a cross linker
Hi I am using cmake for sometime now and I am quite impressed by it. there are yet some areas that I need to understand more. If I am using a cross linker, say ld-m68k .. how do I incorporate it into the cmake process? it seems that cmake assumes that the compiler itself will do the linking. regards Abhijeet abhijeet mhatre <[EMAIL PROTECTED]> wrote: Hi list I am using cmake as a tool for generating Linux makefiles. I read the documentation and made a CmakeLists.txt file. but when I do a cmake . , I get errors here is the CmakeLists.txt file -- PROJECT(myproject) SET_TARGET_PROPERTIES(HelloWorld PROPERTIES LINKER_LANGUAGE CXX) INCLUDE_DIRECTORIES(../dcmtk-3.5.4/dcmnet/apps ../dcmtk-3.5.4/dcmnet/include ../dcmtk-3.5.4/dcmdata/include ../dcmtk-3.5.4/dcmdata ../dcmtk-3.5.4/ofstd/include ../dcmtk-3.5.4/config/include) ADD_DEFINITIONS(-DHAVE_CONFIG_H -DNDEBUG -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L) LINK_DIRECTORIES(../dcmtk-3.5.4/dcmnet/libsrc ../dcmtk-3.5.4/dcmdata/libsrc ../dcmtk-3.5.4/ofstd/libsrc ../dcmtk-3.5.4/dcmtls/libsrc) TARGET_LINK_LIBRARIES(HelloWorld dcmnet dcmdata ofstd z wrap dcmtls dl m rt pthread nsl) ADD_EXECUTABLE(HelloWorld HelloWorld.cpp) and here are the errors CMake Error: Attempt to add link library "dcmnet" to target "HelloWorld" which is not built by this project. CMake Error: Attempt to add link library "dcmdata" to target "HelloWorld" which is not built by this project. - Agreed that I am linking to a library that's not built by CMake. But shouldn't I be allowed to do it? Could anyone please help me on this. I am using cmake version 2.4-patch 6 on Fedora Core 6 Regards Abhijeet - Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. - Pinpoint customers who are looking for what you sell. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] LINK_DIRECTORIES gives errors
>Actually, it is trying to say that target "HelloWorld" is not built by >the project. The TARGET_LINK_LIBRARIES command must come AFTER the >ADD_EXECUTABLE command so that cmake will know what the target is. Hey Thanks Bill and Vitor. It works perfectly now. - Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search.___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] LINK_DIRECTORIES gives errors
Hi list I am using cmake as a tool for generating Linux makefiles. I read the documentation and made a CmakeLists.txt file. but when I do a cmake . , I get errors here is the CmakeLists.txt file -- PROJECT(myproject) SET_TARGET_PROPERTIES(HelloWorld PROPERTIES LINKER_LANGUAGE CXX) INCLUDE_DIRECTORIES(../dcmtk-3.5.4/dcmnet/apps ../dcmtk-3.5.4/dcmnet/include ../dcmtk-3.5.4/dcmdata/include ../dcmtk-3.5.4/dcmdata ../dcmtk-3.5.4/ofstd/include ../dcmtk-3.5.4/config/include) ADD_DEFINITIONS(-DHAVE_CONFIG_H -DNDEBUG -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L) LINK_DIRECTORIES(../dcmtk-3.5.4/dcmnet/libsrc ../dcmtk-3.5.4/dcmdata/libsrc ../dcmtk-3.5.4/ofstd/libsrc ../dcmtk-3.5.4/dcmtls/libsrc) TARGET_LINK_LIBRARIES(HelloWorld dcmnet dcmdata ofstd z wrap dcmtls dl m rt pthread nsl) ADD_EXECUTABLE(HelloWorld HelloWorld.cpp) and here are the errors CMake Error: Attempt to add link library "dcmnet" to target "HelloWorld" which is not built by this project. CMake Error: Attempt to add link library "dcmdata" to target "HelloWorld" which is not built by this project. - Agreed that I am linking to a library that's not built by CMake. But shouldn't I be allowed to do it? Could anyone please help me on this. I am using cmake version 2.4-patch 6 on Fedora Core 6 Regards Abhijeet - Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A.___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake