Re: [CMake] Examples creating exported Makefiles and correct library link order

2011-06-15 Thread Michael Hertling
On 06/15/2011 12:56 AM, Lori Pritchett-Sheats wrote: My project needs to create and install a Makefile that other client projects could import to link against our project. T I have a simple template file that generates an exported Makefile using the configure_file command, however I'm

[CMake] Examples creating exported Makefiles and correct library link order

2011-06-14 Thread Lori Pritchett-Sheats
My project needs to create and install a Makefile that other client projects could import to link against our project. T I have a simple template file that generates an exported Makefile using the configure_file command, however I'm struggling with how to create a variable that contains all

Re: [CMake] Examples creating exported Makefiles and correct library link order

2011-06-14 Thread J Decker
I wrote a C script that I configure_file on that writes a cmakelists module (might also be a makefile) (I think) The cmake way would be to define PROJECT_LIBRARIES; PROJECT_INCLUDE_DIR; PROJECT_LIBRARY_DIR; PROJECT_INCLUDE_DIR... all of which can be built from knowing CMAKE_INSTALL_PREFIX but

Re: [CMake] Examples creating exported Makefiles and correct library link order

2011-06-14 Thread J Decker
Okay really sorry - CMAKE_INSTALL_CONFIG_NAME isn't relavent for things using makefile... should just use CMAKE_BUILD_TYPE... but also I guess a lot of projects don't support that either On Tue, Jun 14, 2011 at 7:11 PM, J Decker d3c...@gmail.com wrote: I wrote a C script that I configure_file