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

Author Topic: Compiling with CMake on Linux  (Read 3068 times)

0 Members and 1 Guest are viewing this topic.

Zsivony1es

  • Newbie
  • *
  • Posts: 2
    • View Profile
Compiling with CMake on Linux
« on: October 06, 2021, 09:41:02 am »
Hi everyone!
I was reading an article/tutorial on configuring my project and setting it up to run with CMake and it wasn't quite unambiguous for me, if the dependencies it is telling me to install should be saved in the project folder as libraries or if they should just simply be installed on the Linux client I am currently trying to build the project on.

Here's the link to the page: https://www.sfml-dev.org/tutorials/2.5/compile-with-cmake.php

Thank you for any replies in advance!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Compiling with CMake on Linux
« Reply #1 on: October 10, 2021, 06:07:33 pm »
Depends on how you want things setup, meaning it's pretty much up to you.

You can install the SFML libraries to your own directory somewhere by setting the CMAKE_PREFIX_PATH or you can leave the default path, which has the plus side, that it should then be found by the linker directly.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything