Jump to content

  • Log In with Google      Sign In   
  • Create Account

Christofer Padilla

Member Since 16 Jan 2012
Offline Last Active Jul 29 2012 12:17 PM

Posts I've Made

In Topic: CMake assets

28 July 2012 - 07:58 PM

Woohoo! It worked! First of all it turns out that it wasn't displaying the image because SDL only likes 24-bit bmps. So I used the cmake copy command to include all the images in my assets folder using something like this:
[source lang="plain"]foreach(asset ${ASSETS}) file(COPY ${asset} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/assets)endforeach(asset)[/source]

Thanks for all the help!

In Topic: CMake assets

26 July 2012 - 10:11 PM

Hey thanks for the reply. I've basically setup my build environment alright, since it builds on windows and Linux right now. It was probably my fault for not providing some more context but my problem was that the images weren't loading. This was because none of the images in the assets folder I set up were being included when I built the project through cmake.

So really I think I may just need to copy them over, as you suggested. I'll try it again tomorrow and I'll update on how it goes.