[CMake] 3rd party modules

Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA artur.kedzierski at navy.mil
Mon Sep 18 21:47:35 EDT 2006


	Hi,

	Some packages provide modules/programs that
provide information where they were installed. For
example, "FooLibrary" may provide
FooLibrary.m4 for auto-tools,
FooLibrary.pc for pkg-confing,
or
Foo-config for anything else.
	As an author of a library, should I start 
providing anything for Cmake for easier integration 
(that works on multiple platforms)? 
For example, a FooLibrary, after
compilation and installation in /usr/local/, would generate
"FindFooLibrary.cmake" that would contain:

FIND_PACKAGE(FooLibrary)
SET(FOO_LIBRARY_FOUND TRUE)
SET(FOO_LIBRARY_INCLUDE_DIR "/usr/local/include/FooLibrary")
SET(FOO_LIBRARY_LIBRARY "/usr/local/lib/FooLibrary.so")

That way, even on Windows, a program using Cmake would
be able to easily find FooLibrary by using FIND_PACKAGE(FooLibrary).
Also, if a user of FooLibrary doesn't have root privileges to
install FindFooLibrary.cmake in /usr/share/Cmake/Modules/, can he/she
specify where a cmake can find additional modules?
	Thank You.

--
Artur Kedzierski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4670 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060918/9b23b371/smime-0001.bin


More information about the CMake mailing list