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

Author Topic: Setting SFML on CLion  (Read 1614 times)

0 Members and 1 Guest are viewing this topic.

femaf

  • Newbie
  • *
  • Posts: 2
    • View Profile
Setting SFML on CLion
« on: March 04, 2021, 08:48:44 pm »
Good evening. I'm sorry if this has already been asked, but I tried to search for this specific question and didn't find anything. My question is: is there a guide about setting up SFML on CLion?  I know it has something to do with some cmake file but I didn't understand what should I do. My OS is Windows 10

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Setting SFML on CLion
« Reply #1 on: March 05, 2021, 03:49:15 pm »
Hello :)

There's no official tutorial for CLion, but since it is CMake-based, you should be able to use SFML using the normal CMake tutorial. As a generator, you need to use the one set in the CLion toolchain (MinGW g++ or MSVC compiler).
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

femaf

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Setting SFML on CLion
« Reply #2 on: March 05, 2021, 09:13:16 pm »
Thank you for answering. I have a problem setting the cmakelist file. The compiler gives me an undefined reference error. I tried to use target_link_libraries but it didn't work.

 

anything