SFML community forums

Help => General => Topic started by: femaf on March 04, 2021, 08:48:44 pm

Title: Setting SFML on CLion
Post by: femaf 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
Title: Re: Setting SFML on CLion
Post by: Nexus 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).
Title: Re: Setting SFML on CLion
Post by: femaf 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.