@Daid, that is somewhat helpful, but I'm still lost on how to set RESOURCE_BASE_DIR. I was looking in your CMakeLists.txt, and I see this:
# install resources, scripts, and packs to app bundle instead of system dir.
if(APPLE)
set(CMAKE_INSTALL_PREFIX "./")
elseif(UNIX)
# Set RESOURCE_BASE_DIR on Unix so the built binary is able to find resources
add_definitions(-DRESOURCE_BASE_DIR="${CMAKE_INSTALL_PREFIX}/share/emptyepsilon/")
endif()
Now this seems fine at first glance, but I don't think this would work.
Suppose I had an source directory with a CMake file, and I did mkdir build, cd build, and cmake .. on a unix system (A basic out-of-source build). And now I wanted to run this app. However, since the RESOURCE_BASE_DIR is set to /usr/share/emptyepsilon, the game is going to look for resources there, when they aren't there in the first place. How owuld that work?