[CMake] A neat package out of a library

Mika.Rajala at patria.fi Mika.Rajala at patria.fi
Mon Jan 25 05:19:46 EST 2010


Hi

I think i have solved something now, it was just too easy for my sceptical
mind.

Anyway, I found out that NSIS installer on windows xp (which is the only
platform this currently needs to work on) already generates a registry
entry, and i only need to read it
in the Find*.cmake file, which appears to be simple.

Now my only problem that remains is, how do I configure the NSIS installer
to install the Find*.cmake file to the correct location?
And by correct, i mean a folder where CMake might find it, or to say it
differently ${CMAKE_ROOT}/Modules. Would it work with NSIS
if I wrote it like this?

install(FILES FindXXX.cmake DESTINATION ${CMAKE_ROOT}/Modules)

Oh and btw, my cmake version is 2.6.4. (My sceptical mind doesn't find
2.8.* trustworthy, yet.)

-mika



                                                                           
             Mika.Rajala at patri                                             
             a.fi                                                          
             Sent by:                                                   To 
             cmake-bounces at cma         cmake at cmake.org                     
             ke.org                                                     cc 
                                                                           
                                                                   Subject 
             25.01.2010 09:16          [CMake] A neat package out of a     
                                       library                             
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Hi

I'm trying to generate a NSIS installer for a development library.

The installer would need to do the following, install the headers and
libraries to a directory, copy the Find**.cmake to the correct location
where it can be found with cmake, set a registry key value to indicate
where it was installed so that the Find**.cmake could find the library.

Is there some tutorial or document about how to generate something as such
somewhere?

The first step is currently working, the files are installed, apart from
Find**.cmake.

My current problem is that I don't know how to write registry entries from
the installer. Or how to find where the Find*.cmake should be installed.

I wonder if there is something fundamentally wrong with my aproach.

-mika

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake




More information about the CMake mailing list