Windows doesn't really provide a general place for third-party libraries.
As such the general way is to place them where ever you want and by setting SFML_ROOT to the root directory of SFML, will ensure that the FindSFML.cmake script will find it.
I get that. In fact, I am using SFML_ROOT to point to the folder where I have placed SFML 2.1.
My question was oriented to the coexistence of both SFML 2.1 for x86 and x64 in the same folder. Right now, I have the following subfolders within it:
- bin32 (dlls for x86)
- bin64 (dlls for x64)
- include (headers common to both x86 and x64)
- lib32 (libs for x86)
- lib64 (libs for x64)
The thing is that CMake cannot find the libraries unless I name the folder that contains them as "lib" but, if I do that, I get only the x86 or the x64 flavor. However, if I were to change the structure of the folders like this:
- lib (base folder for libraries)
- lib (libs for x86)
- lib64 (libs for x64)
Then, I can compile for any of those architectures, just modifying an option in the CMake to add the -m32 parameter to the compiler flags. However, that sounds like a really dirty solution, so I don't know...