Take CMAKE_INSTALL_PREFIX into account

Issue #3 new
Christoph Haag created an issue

install (DIRECTORY resources DESTINATION "${CMAKE_CURRENT_BINARY_DIR}") in CMakeLists.txt is a bit unfortunate.

I think it should rather install in ${CMAKE_INSTALL_PREFIX}/share/ibex or something like that.

Then the binary is missing from the installed things. Perhaps something like this:

install (DIRECTORY resources DESTINATION "${CMAKE_INSTALL_PREFIX}/share/ibex")
install (TARGETS ibex RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/share/ibex")

The binary in /usr/share/ibex is also unfortunate but it is necessary to have it in the same directory as the resources directory since the resources directory path seems to be hardcoded in the source code, so maybe this could be a bit more configurable...

Disclaimer: I don't know how to use cmake properly yet.

Comments (1)

  1. Hesham Wahba repo owner

    Thanks! I'll look into it :) the Rift will be out soon so we'll need to get it in tip-top shape!

    Regards, Hesham

  2. Log in to comment