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

Author Topic: How to compile only selected modules  (Read 1314 times)

0 Members and 2 Guests are viewing this topic.

netrick

  • Full Member
  • ***
  • Posts: 174
    • View Profile
How to compile only selected modules
« on: January 14, 2013, 05:59:31 pm »
From obvious reasons on my linux VPS I need only to compile system and network module (I don't want to add a lot of dependencies for graphics etc). However I have no idea how can I do this using terminal cmake. Any advices?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to compile only selected modules
« Reply #1 on: January 14, 2013, 09:23:58 pm »
make sfml-system
make sfml-network
?
Laurent Gomila - SFML developer

netrick

  • Full Member
  • ***
  • Posts: 174
    • View Profile
Re: How to compile only selected modules
« Reply #2 on: January 15, 2013, 10:41:27 pm »
I didn't know it's so simple. Thanks. But how will "cmake ." behave when it won't find dependencies for graphics etc?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to compile only selected modules
« Reply #3 on: January 16, 2013, 07:52:06 am »
Quote
I didn't know it's so simple.
All the make targets are explained in the "compiling SFML" tutorial.

Quote
But how will "cmake ." behave when it won't find dependencies for graphics etc?
I think it will stop with a fatal error ;D
I should probably add options to select a subset of modules to build. What you can do is to edit the CMakeLists.txt manually and remove the "add_subdirectory(<module>)" lines for modules that you don't want to compile.
Laurent Gomila - SFML developer

 

anything