Skip to content

Use in other projects #505

@lotigara

Description

@lotigara

I want to to port a game to Android using this. This game uses CMake for building, so the best way to compile gl4es is to use add_subdirectory function. However, gl4es has following lines:

gl4es/CMakeLists.txt

Lines 8 to 10 in 9e8037b

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)

gl4es/src/CMakeLists.txt

Lines 226 to 232 in 9e8037b

install(TARGETS GL
LIBRARY
DESTINATION "/usr/lib/gl4es/"
)
install(FILES "../include/gl4esinit.h" "../include/gl4eshint.h"
DESTINATION "/usr/include/gl4es/"
)

That is, gl4es has hard-coded paths to output directories, and it isn't suitable for users of the library.
And the library appears at the source code directory. So what is a known workaround for this issue?

Also do you have any suggestions on porting games using gl4es?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions