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

Author Topic: How to make a VS template  (Read 136 times)

0 Members and 1 Guest are viewing this topic.

mrdouble

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
How to make a VS template
« on: January 07, 2025, 06:56:31 am »
I think I've followed the tutorial instructions but I just cant do anything with it once build it for VS, not to mention it throws an error. From my reading, the "SFML with the CMake Project Template" just creates a SLN file so I dont have to set the include, lib and bins directories, correct?

It works just fine when I just download the VS version and manually supply all the directories..



« Last Edit: January 07, 2025, 07:06:59 am by mrdouble »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11075
    • View Profile
    • development blog
    • Email
Re: How to make a VS template
« Reply #1 on: January 07, 2025, 09:40:39 am »
If you use the CMake template, it's recommended that you open the project as "open folder" option, this way you use Visual Studio's native CMake support and it will regenerate automatically when you change the CMake script.

You can, if you want, still generate a VS solution with CMake itself and use that.
Then you just need to rerun CMake manually when you add a new file.

From my reading, the "SFML with the CMake Project Template" just creates a SLN file so I dont have to set the include, lib and bins directories, correct?
I don't quite understand your question here.
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

mrdouble

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: How to make a VS template
« Reply #2 on: January 07, 2025, 09:38:42 pm »
Thanks for your reply.I'm getting confused by the CMake process. I guess ill just set it up manually