[CMake] SET_TARGET_POPERTIES LOCATION for ADD_LIBRARAY
Hi I am doing ADD_LIBRARY( yourprintf SHARED ${SOURCS}) SET_TARGET_PROPERTIES ( yourprintf PROPERTIES LOCATION /home/aks/yourprintf) Its not producing the library @ the LOCATIOn specified. What's wrong with it? I am also trying COMPILE_FLAGS property but that too has no effect in compile options. Can anybody guide me? regards Amit Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] SET_TARGET_POPERTIES LOCATION for ADD_LIBRARAY
Hi Alex, It works with LIBRARY_OUTPUT_DIR. Thanks a lot!! There is one strange thing I observe, may be a bug or feature. If you specify SET_TARGET_PROPERTIES LINK_FLAGS -L ../../xyz then too cmake puts the SUBDIRS path in -rpath in Linking. Ideally it should not include SUBDIRS path in -rpath when -L is specified for target. regards Amit --- Alexander Neundorf [EMAIL PROTECTED] wrote: On Thursday 15 November 2007, Amit C. Kr. Saluja wrote: Hi I am doing ADD_LIBRARY( yourprintf SHARED ${SOURCS}) SET_TARGET_PROPERTIES ( yourprintf PROPERTIES LOCATION /home/aks/yourprintf) Its not producing the library @ the LOCATIOn specified. I thnk you can only read that propery, but not change it. To have the libs in another location set LIBRARY_OUTPUT_DIR Alex ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] Invoking tarhets in Handwritten Makefile through CMake
Hi, How can I add to the all: target to invoke make in handwritten Makefiles through CMake A- |- cmake/Makefile (CMakeLists.txt) |- src |- inc B-|-Makefile (handwriten Makefile, target all: clean: |- src |- inc Is it possible? regards Amit Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] How to redirect output (.o file generattion) in specific directory
No, AFAIK this is fix and you can't change it. Why do you want to do that ? (I recommend you just get used to the location of the object files). I want to add the gcc options for gcov in Makefile. The gcc flags dumps the *.gcno files at the location of .o files. So, if you run the gcov on .c files, then these files should be in the current directory where from you are running gcov. With existing CMake Framework for .o files, either one should copy *.gcno files in current directory or should run gcov from .O files directory. If any othjer option is available? Do help me out!! regards Amit --- Alexander Neundorf [EMAIL PROTECTED] wrote: On Monday 12 November 2007, Amit C. Kr. Saluja wrote: Eric, Thanks for this info! EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH These are global CMake variables. If we change it then the EXECUTABLE LIBRARY path of all the exe and libs changes but not for .os The.os are still generated in CMakeFiles/ directory. Can CMAKE_CURRENT_BINARY_DIR could do something? No, AFAIK this is fix and you can't change it. Why do you want to do that ? (I recommend you just get used to the location of the object files). Alex ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/ ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] How to redirect output (.o file generattion) in specific directory
Hi All, If anybody could guide me about, How to redirect .o files in user defined directory? I am setting CMAKE_CURRENT_SOURCE_DIR to ../obj but it is generating targets in ~/src/*.o Can anybody enlighten? Thanks regards amit __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] How to redirect output (.o file generattion) in specific directory
Eric, Thanks for this info! EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH These are global CMake variables. If we change it then the EXECUTABLE LIBRARY path of all the exe and libs changes but not for .os The.os are still generated in CMakeFiles/ directory. Can CMAKE_CURRENT_BINARY_DIR could do something? regards Amit --- Eric Noulard [EMAIL PROTECTED] wrote: 2007/11/12, Amit C. Kr. Saluja [EMAIL PROTECTED]: Hi All, If anybody could guide me about, How to redirect .o files in user defined directory? I am setting CMAKE_CURRENT_SOURCE_DIR to ../obj but it is generating targets in ~/src/*.o You cannot change CMAKE_CURRENT_SOURCE_DIR Can anybody enlighten? If you want to separate your sources files from generated files (be it .o or lib or executable) you'd better use out-of-source build which is well supported by cmake mkdir /path/to/build_tree cd /path/to/build_tree cmake /path/to/source/tree You must remove CMakeCache.txt and other CMakeFiles/ from your source tree first. You may change the generation location of EXECUTABLE and LIBRARY by setting: EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH see more on http://www.cmake.org/Wiki/CMake_Useful_Variables -- Erk ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake