Re: [CMake] CMake LIST Command: Wiki changes and LIST patch.
In my opinion this could be a useful addition. I think you should open a featuure request and incluse the related operations. Andrew On 6/26/07, Miguel A. Figueroa-Villanueva <[EMAIL PROTECTED]> wrote: Hello everyone, I have made some changes to the wiki page on lists (http://www.cmake.org/Wiki/CMakeMacroListOperations) to reflect the new LIST command in CMake 2.4+. I hope I have presented the changes in an appropriate way. There is one macro in the wiki page that the current LIST command couldn't support, the LIST_CONTAINS. This macro provides a functionality that I believe is quite useful and is in line with the other LIST command operations. As such, I went ahead and implemented it in my cmake source tree and have provided a patch for it below. The changes add the following functionality: LIST List operations. LIST(CONTAINS ) CONTAINS will return TRUE if the element specified is in the list. SET(MYLIST hello world foo bar) LIST(CONTAINS MYLIST foo RESULT1) -- RESULT1: TRUE LIST(CONTAINS MYLIST baby RESULT2) -- RESULT2: FALSE I would like to know if this is a feature of interest to the CMake developers and if it may be included in future distributions. If not, I would stick to supporting this through local MACROS. Also, I would gladly provide a patch for the following two related operations: 1. LIST(CONTAINS [ ...] ) - returns TRUE if all values are in the 2. LIST(CONTAINS_ANY [ ...] ) - returns TRUE if any of the values are in the but I'm not sure if the developers want to keep a simpler interface. Hence, I would appreciate feedback on whether this is of interest and if I should open a Feature Request. Thanks, --Miguel -- Miguel A. Figueroa Villanueva +1 787 832-4040 x.3610-4006 Department of Electrical and Computer Engineering University of Puerto Rico - Mayagüez Campus ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake -- ___ Andrew J. P. Maclean Centre for Autonomous Systems The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Ph: +61 2 9351 3283 Fax: +61 2 9351 7474 URL: http://www.cas.edu.au/ ___ ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] CMake LIST Command: Wiki changes and LIST patch.
Hello everyone, I have made some changes to the wiki page on lists (http://www.cmake.org/Wiki/CMakeMacroListOperations) to reflect the new LIST command in CMake 2.4+. I hope I have presented the changes in an appropriate way. There is one macro in the wiki page that the current LIST command couldn't support, the LIST_CONTAINS. This macro provides a functionality that I believe is quite useful and is in line with the other LIST command operations. As such, I went ahead and implemented it in my cmake source tree and have provided a patch for it below. The changes add the following functionality: LIST List operations. LIST(CONTAINS ) CONTAINS will return TRUE if the element specified is in the list. SET(MYLIST hello world foo bar) LIST(CONTAINS MYLIST foo RESULT1) -- RESULT1: TRUE LIST(CONTAINS MYLIST baby RESULT2) -- RESULT2: FALSE I would like to know if this is a feature of interest to the CMake developers and if it may be included in future distributions. If not, I would stick to supporting this through local MACROS. Also, I would gladly provide a patch for the following two related operations: 1. LIST(CONTAINS [ ...] ) - returns TRUE if all values are in the 2. LIST(CONTAINS_ANY [ ...] ) - returns TRUE if any of the values are in the but I'm not sure if the developers want to keep a simpler interface. Hence, I would appreciate feedback on whether this is of interest and if I should open a Feature Request. Thanks, --Miguel -- Miguel A. Figueroa Villanueva +1 787 832-4040 x.3610-4006 Department of Electrical and Computer Engineering University of Puerto Rico - Mayagüez Campus cvs.patch Description: Binary data ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Visual Studio generator missing
Bill Hoffman wrote: Kovarththanan Rajaratnam wrote: To compare things, I've downloaded the Windows version and it seems to list all the Visual Studio generators. Would I have to compile my own version of CMake under Cygwin? If so, do I need to pass special parameters to ensure that the Visual Studio generators are included? Unfortunately, because of the cygwin library the cygwin cmake is a different binary than the windows binary. The main technical reason for this is the cygwin path stuff, like /cygdrive and other mount points. There are license issues as well.The windows cygwin maybe right for you if you want both. The Unix Makefiles generator should work for the cygwin gcc. What are the license issues? Thanks. Josh ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Visual Studio generator missing
Joshua Jensen wrote: Bill Hoffman wrote: Kovarththanan Rajaratnam wrote: To compare things, I've downloaded the Windows version and it seems to list all the Visual Studio generators. Would I have to compile my own version of CMake under Cygwin? If so, do I need to pass special parameters to ensure that the Visual Studio generators are included? Unfortunately, because of the cygwin library the cygwin cmake is a different binary than the windows binary. The main technical reason for this is the cygwin path stuff, like /cygdrive and other mount points. There are license issues as well.The windows cygwin maybe right for you if you want both. The Unix Makefiles generator should work for the cygwin gcc. What are the license issues? GPL stuff with the cygwin dll. Also, you are not allowed to have executables that use MFC that are part of the cygwin distribution, so CMakeSetup can not be part of that package. It really is more of a technical issue. The windows binary can not understand cygwin paths, and the cygwin binary can not have CMakeSetup, so there has to be two of them. -Bill ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Visual Studio generator missing
On 6/25/07, Joshua Jensen <[EMAIL PROTECTED]> wrote: Bill Hoffman wrote: > There are license issues as well.The windows cygwin > maybe right for you if you want both. The Unix Makefiles generator > should work for the cygwin gcc. What are the license issues? Anything compiled with cygwin1.dll is GPLed. The -mno_cygwin option is possible to avoid this, but few people attempt it in practice, so builds often just fall apart. I don't know how dependent CMake is on cygwin1.dll's Unix compatibility layer. Cheers, Brandon Van Every ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] MACOSX_PACKAGE_LOCATION usage
I've just started with CMake (what a fantastic breath of fresh air after auto{conf,make} hell!). I've been attempting to build a MACOSX application bundle using the MACOSX_PACKAGE_LOCATION with a recent CVS CMake build (which I can report correctly elides -isystem, which prevents building with templates on OSX in the release version 2.4.6). Unfortunately, I can't seem to get the indicated file(s) to copy to the Resources/ directory within the bundle. Here's an example of how I'm using it: IF( APPLE ) ADD_EXECUTABLE( ${PROGNAME} MACOSX_BUNDLE ${hugin_SOURCES}) SET_SOURCE_FILES_PROPERTIES( "${CMAKE_CURRENT_SOURCE_DIR}/${MACOSX_BUNDLE_ICON_FILE}" PROPERTIES MACOSX_PACKAGE_LOCATION Resources ) ... Does the ICON_FILE need some sort of dependency created to actually engage whatever code lies behind MACOSX_PACKAGE_LOCATION? Here's another way I'm trying (and failing) to use this property: IF( APPLE ) SET_SOURCE_FILES_PROPERTIES( ${_out} PROPERTIES MACOSX_CONTENT 1 MACOSX_PACKAGE_LOCATION "Resources/locale/${_file_we}/LC_MESSAGE/${_baseName}.mo" ) Can the PACKAGE_LOCATION be a specific filename like this, if it applies to only one file? If not, how else would you suggest renaming the file as it is moved automatically into location within Resources/? Does MACOSX_CONTENT do anything? One more issue relates to Info.plist. Is there a way to include DocumentTypes stanzas like: CFBundleDocumentTypes CFBundleTypeExtensions pto CFBundleTypeIconFile HuginFiles.icns CFBundleTypeMIMETypes application/x-ptoptimizer- script CFBundleTypeName Hugin Project CFBundleTypeRole Editor LSTypeIsPackage This type of Info.plist stanza is useful for associating file types with the application (and indicating a file icon as well). Thanks very much, JD Smith ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] integrating cmake project with third party project
ADD_CUSTOM_COMMAND runs at build time, in the shell you're actually building with. EXECUTE_PROCESS runs at configuration time, in whatever shell you started CMake with. The vast majority of the time, you want to accomplish things with ADD_CUSTOM_COMMAND. You can't use CMake script commands directly inside an ADD_CUSTOM_COMMAND, you have to use things that actually work on the command line. You could run a new CMake instance to fire off a script, i.e. COMMAND ${CMAKE_COMMAND} -D var=value -P myscript Cheers, Brandon Van Every On 6/25/07, abhijeet mhatre <[EMAIL PROTECTED]> wrote: 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 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] integrating cmake project with third party project
abhijeet mhatre wrote: 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? Try ADD_CUSTOM_COMMAND. -- Jack ___ 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
[CMake] Including .h files in Visual Studio projects
Hi all, I'm trying to get our header files to show up in Visual Studio. I though I could just do add_library(foo foo.cpp foo.h) but Visual Studio tries to compile my header file as if it was a .cpp file. What am I doing wrong? -- /Jesper ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Cmake with Eclipse
Hi Alex, > There is a new class cmExternalMakefileProjectGenerator, which can be > subclassed and be used to create project files for your prefered IDE. This is really cool! I have implemented such a makefile-based generator with additional IDE-files and it was quite annoying to set it up. Basically because you could not just reuse an existing makefile-generator and simply add the code to generate the IDE-files. I'll give it a try. Cheers! Marco ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Setting CMAKE_CXX_FLAGS_<> in CMakeLists.txt
On 6/24/07, Michael Hammer <[EMAIL PROTECTED]> wrote: Do I have any (smart) possibility to debug those flags, resp. debug variables which aren't set in the cache? The point is, these variables have to be registered in some Makefile (or something similar) after the configure process ... If you are using a makefile based system, simply inspect the files in the build tree named "flags.make" which you should find in the various locations where you have customized the flags... If you are using Visual Studio or Xcode, you can typically find those flags in the properties dialogs of those IDE systems. Right click on a project node in Visual Studio, for example, and choose "Properties" -- then look for the "C/C++ > Command Line" entry. All of your flags changes for a project should be represented in there. Similarly for individual source files if you have overridden the COMPILE_FLAGS for individual source files using SET_SOURCE_FILES_PROPERTIES. HTH, David ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
RE: [CMake] compiling idl files
Hi Jon, If you mean idl files like they are used in Corba, then there is a easy way to do that. I have done it that way: FIND_PROGRAM( CORBAIDL ) ADD_CUSTOM_COMMAND( OUTPUT ${PROJECT_BINARY_DIR}/Output.cpp DEPENDS ${CORBAIDL} COMMAND ${CORBAIDL} ARGS -bcxx -Wbh=.h -Wbs=.cpp -I${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/Output.idl ) SET(SRC ${SRC} ${PROJECT_BINARY_DIR}/Output.cpp) You have to include the builded files into your sources. This is done by the set command. Hope i could help. Greetings Alexnader > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > ] On Behalf Of Jon W > Sent: Friday, June 22, 2007 7:59 PM > To: cmake@cmake.org > Subject: [CMake] compiling idl files > > Does anybody have a CMakelists.txt example on how to properly > compile idl files into visual studio projects? I'm not sure > if I need to use ADD_CUSTOM_COMMAND or just list the idl > files in the sources, etc.. > > Thanks, > Jon > ___ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake > Please note: This e-mail may contain confidential information intended solely for the addressee. If you have received this e-mail in error, please do not disclose it to anyone, notify the sender promptly, and delete the message from your system. Thank you. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake