1
General / Re: Compiling example with cmake
« on: June 27, 2012, 11:10:46 am »
Ok, thanks. My curiosity is satisfied for now.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Isn't it redundant?Ah, forgot to remove that.
What's important is that you need the .lib file only when you compile, and the .dll file only when you execute (so you don't have to distribute .lib files).Ok, that's good to know, thanks!
Why would you copy them everytime? They never change.Right, but it's still one extra step and it would be nice it could be done automatically by cmake somehow. But ok, it's not really that important.
And if you don't want DLLs at all, link statically.I might do that, thanks.
Wait... why is this post in the C forum??I thought this was the right forum, because my problems were more related to the programming language and not directly to sfml, but I just noticed that this forum is not C/C++ but only C, sorry. Maybe this can be moved.
By the way, you should use the FindSFML.cmake script to abstract the way SFML is found and used by CMake.Good idea, I thought that required SFML to be installed on the sytem, but it seems that is not the case. I updated my CMakeLists.txt and it works, thanks! I'll post later about my other problem.