1
General discussions / FindSFML for CMAKE
« on: November 21, 2008, 10:31:33 am »
I want to add a module to cmake for searching SFML. Before I will try to get it into the official CMAKE sources I ask here for tester.
I appended a simple program to test the module on your system and for showing how to bind it into your own program (if you are allready using cmake).
With this module it is possible to simply find SFML by using the following command:
The module then set's following variables:
SFML_LIBRARY, the name of the library to link against
SFML_FOUND, if false, do not try to link to SFML
SFML_INCLUDE_DIR, where to find SFML headers
Asking for a specific version or a specific component is not yet possible.
Would be nice to get some feedback.
http://www.sendspace.com/file/341ed2
I appended a simple program to test the module on your system and for showing how to bind it into your own program (if you are allready using cmake).
With this module it is possible to simply find SFML by using the following command:
Code: [Select]
Find_Package(SFML REQUIRED)
The module then set's following variables:
SFML_LIBRARY, the name of the library to link against
SFML_FOUND, if false, do not try to link to SFML
SFML_INCLUDE_DIR, where to find SFML headers
Asking for a specific version or a specific component is not yet possible.
Would be nice to get some feedback.
http://www.sendspace.com/file/341ed2