Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: CMake Find  (Read 2192 times)

0 Members and 1 Guest are viewing this topic.

poseidon

  • Newbie
  • *
  • Posts: 4
    • View Profile
CMake Find
« on: April 23, 2011, 01:56:54 am »
Does anyone know where I can find an find sfml cmake file?

This would be extremely helpful for making my code more portable.

Thanks,

poseidon
Poseidon - The God of C

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
CMake Find
« Reply #1 on: April 23, 2011, 07:47:01 am »
The Git revisions of SFML 2 contain a FindSFML.cmake (in the cmake/Modules directory).
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

poseidon

  • Newbie
  • *
  • Posts: 4
    • View Profile
CMake Find
« Reply #2 on: April 23, 2011, 10:40:11 pm »
I'm using sfml 1.6.

Is there a version for sfml 1.6, or should the cmake find from the 2.0 git repository suffice?
Poseidon - The God of C

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
CMake Find
« Reply #3 on: April 23, 2011, 10:43:36 pm »
The FindSFML.cmake from the GIT repo should work for SFML 1 too.
Laurent Gomila - SFML developer

poseidon

  • Newbie
  • *
  • Posts: 4
    • View Profile
CMake Find
« Reply #4 on: April 24, 2011, 12:03:03 am »
Well I got the FindSFML.cmake from the git repository.  However, it seems as though it only recognizes where my include files are.  ${SFML_LIBRARIES} and ${SFML_SYSTEM_LIBRARY_RELEASE} both were empty.

I'm using ArchLinux and sfml was installed in /usr/lib for me.

Code: [Select]

[joe@joseph lib]$ ls /usr/lib |grep sfml
libsfml-audio.so
libsfml-audio.so.1.6
libsfml-graphics.so
libsfml-graphics.so.1.6
libsfml-network.so
libsfml-network.so.1.6
libsfml-system.so
libsfml-system.so.1.6
libsfml-window.so
libsfml-window.so.1.6


Is it something I'm doing wrong or does it have to do with the FindSFML.cmake file?
Poseidon - The God of C

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
CMake Find
« Reply #5 on: April 24, 2011, 09:12:49 am »
How did you call it?
Laurent Gomila - SFML developer

 

anything