Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists for parser #3975

Closed
wants to merge 1 commit into from
Closed

Conversation

Filyus
Copy link
Contributor

@Filyus Filyus commented May 11, 2024

This must be comfortable to customize the list of used libraries:

set(HEADERS
    raylib_api "${RAYLIB_DIR}/src/raylib.h" "-d RLAPI"
    raymath_api "${RAYLIB_DIR}/src/raymath.h" "-d RMAPI"
    rlgl_api "${RAYLIB_DIR}/src/rlgl.h" "-d RLAPI -t \"RLGL IMPLEMENTATION\""
    reasings_api "${RAYLIB_DIR}/examples/others/reasings.h" "-d EASEDEF"
)
if(USE_LIBRARY_RMEM)
    list(APPEND HEADERS rmem_api "${RMEM_DIR}/src/rmem.h" "-d RMEMAPI -t \"RMEM IMPLEMENTATION\"")
endif()
if(USE_LIBRARY_RRES)
    list(APPEND HEADERS rres_api "${RRES_DIR}/src/rres.h" "-d RRESAPI -t \"RRES IMPLEMENTATION\"")
endif()
if(USE_LIBRARY_PHYSAC)
    list(APPEND HEADERS physac_api "${PHYSAC_DIR}/src/physac.h" "-d PHYSACDEF -t \"PHYSAC IMPLEMENTATION\"")
endif()
if(USE_LIBRARY_RAYGUI)
    list(APPEND HEADERS raygui_api "${RAYGUI_DIR}/src/raygui.h" "-d RAYGUIAPI -t \"RAYGUI IMPLEMENTATION\"")
endif()
if(USE_LIBRARY_RAUDIO)
    list(APPEND HEADERS raudio_api "${RAUDIO_DIR}/src/raudio.h" "-t \"RAUDIO IMPLEMENTATION\"")
endif()

@raysan5
Copy link
Owner

raysan5 commented May 15, 2024

@Filyus I'm afraid I'm not adding this alternative build system. I'm personally not a fan of Cmake and the code is jsut one single .c file. It seems to me like over-engineering.

@raysan5 raysan5 closed this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants