summaryrefslogtreecommitdiffhomepage
path: root/src/CMakeLists.txt
AgeCommit message (Collapse)Author
2018-10-11CMake: remove erroneous status messageAhmad Fatoum
OPENGL_VERSION is the version requested by the user, not the detected one...
2018-10-11CMake: Fix build breakage trying to set OpenGL versionAhmad Fatoum
Fixes #660.
2018-10-07CMake: report what kind of libraries will be builtAhmad Fatoum
2018-10-07CMake: suppress OpenGL deprecation warnings on macOS MojaveAhmad Fatoum
A single warning at configuration time is enough.
2018-09-18enjoy!Ray
2018-07-29Sync with upstream GLFW pull requestAhmad Fatoum
The GLFW tree distributed with raylib has two modifications: - GLFW_PKG_{DEPS,LIBS} are exported to PARENT_SCOPE, so we can use them in our pkg-config file - An intermediary glfw_objlib target is added, so we can reexport GLFW symbols from libraylib.a rglfw can fix the second point, but for Wayland usage, we would have to replicate protocol generation, so we just leverage GLFW's existing support instead. To make maintenance easier, I have submitted a pull request for including these modifications to upstream GLFW. And to make that one easier, this patch dog-foods the modifications, so raylib users can help find regressions. :-) glfw/glfw#1307
2018-07-29CMake: Make the raylib project as a whole embeddableAhmad Fatoum
So user code can use add_subdirectory to build it (similar to what we do with GLFW or what the projects/CMake/CMakeLists.txt can do).
2018-07-29Add projects/CMake exampleAhmad Fatoum
The CMakeLists.txt checks for an installed raylib and downloads and installs one if none is found. Afterwards, it builds core_basic_window.c
2018-07-29CMake: Major cleanup to support find_package(raylib)Ahmad Fatoum
Remove that link_libraries_to_executable() hack and defines a proper raylib target that can be used with target_link_libraries. The same target is also available for external (user) code by using find_package(raylib). This results in: - Remove hardcoded build directories from examples and games CMakeLists.txt - Allow rlgl_standalone and other special examples to be built easily - Allow CMake projects to find_package(raylib instead of fiddling with pkg-config - Makes code a little more maintainable - Fixes #471, #606. - Makes code less confusing by removing the double use of PLATFORM (#584). Note that this is still not _The Right Way_(TM), because normally raylib-config.cmake (or its includes) would be automatically generated. I didn't manage to get that to work though, so I went the easier route of just wrapping pkg_check_modules for consumption by find_package.
2018-07-29Travis CI: Add OpenAL-ConfigurationAhmad Fatoum
2018-07-10CMake: Add Libs.private to Libs if installing static onlyAhmad Fatoum
pkg-config --libs --static raylib and pkg-config --libs raylib should give the same result if there is no shared raylib installed.
2018-07-03Travis CI: Add test case for pkg-configAhmad Fatoum
2018-07-03CMake: Reuse libraries found by glfw CMake configAhmad Fatoum
if (${PLATFORM} MATCHES "Desktop") target_link_libraries(${RAYLIB}_shared glfw ${GLFW_LIBRARIES}) was never true because PLATFORM STREQUAL "PLATFORM_DESKTOP"... This fixes #551 and makes the changes suggested in #552 (commited as 965cc8ab) unnecessary.
2018-07-03CMake: Fix regression in USE_EXTERNAL_GLFW=IF_POSSIBLEAhmad Fatoum
Fixes: e1e036a6 ("Disable glfw only when it is not found and not external", #558)
2018-06-23Fisable glfw only when it is not found and not external.Yuri
2018-06-12Corrected breaking buildRay San
2018-06-02Corrected possible issue with CMake for GLFWRay
2018-05-21cmake: Fix PLATFORM_WEB buildAhmad Fatoum
Did this ever work? Surely, doesn't look like it...
2018-05-21CMake: Fix (Add?) Android supportAhmad Fatoum
Not sure if this ever worked, but now it at least compiles.
2018-05-21CMake: Move reusable code to new cmake/ directoryAhmad Fatoum
2018-05-21CMake: Add default build type if none specifiedAhmad Fatoum
Release, unless we are in a Git repo, then it's Debug.
2018-05-21Move utils.cmake to separate cmake/ directoryAhmad Fatoum
2018-05-18Increase API versionMichael Vetter
Please do this whenever necessary. And adapt it before releasing a new RC. The RC should already have the correct one.
2018-05-12CMake: Fix typo... s/USE_PIC/WITH_PIC/Ahmad Fatoum
2018-05-12CMake: (Properly) build glfw separately with CMakeAhmad Fatoum
This reverts commit 2d6fb5c628068757387525e190c3afdbe33ae9c6, and adds a fix for Alien::raylib's test failures. The tests failed because the resulting static library didn't reexport GLFW symbols. As a fix, we now have GLFW create a CMake "object library" target that we can link with both the static and shared raylib. This is arguably ugly... Proper fix would probably be a GLFW upstream object library target. Closes #536.
2018-05-11Revert "CMake: Build glfw separately with CMake"Ahmad Fatoum
This reverts commit 0adb4b67de6dfe3f7a0a557130dffc3b8f4d6a43, because it failed tests for Alien::raylib: http://www.cpantesters.org/distro/A/Alien-raylib.html
2018-05-11Review raylib version to 2.0Ray
Review raylib_icon resource
2018-05-11CMake: Build glfw separately with CMakeAhmad Fatoum
Makes it easier to support Wayland later on.
2018-05-10CMake: Don't create symlinks on unsupporting file systems (#539)Ahmad Fatoum
Panders to the idiosyncrasies of my work flow: I have my raylib build directory mounted as a VirtualBox vboxfs for use with my Linux VM, but vboxfs doesn't support symlinks, while raylib shared library versioning on Unix expects symlinks to work. If this happens, library versioning is now disabled on Unix with an error message instead of just failing the build.
2018-04-10Updated release version1.9.7-devRay San
2018-04-07CMake: Generate config.h from CMakeOptions.txtAhmad Fatoum
I would have liked config.h to be selected by include dir configuration, but this way is less intrusive.
2018-04-07Split CMake options into separate CMakeOptions.txtAhmad Fatoum
2018-04-07Add GNUInstallDirs and USE_AUDIO/USE_WAYLAND options to CMake (#518)Milan Nikolic
2018-02-24CMake: Add options to use -fsanitize={address,undefined}Ahmad Fatoum
To make bugs like #485, #486, #487 and #488 easier to find in future.
2018-02-16CMake: Remove _RAYLIB suffix from -D{SHARED,STATIC}_RAYLIBAhmad Fatoum
They were named so for compatibility with make, but make doesn't use the anymore. I always forget whether it's SHARED_RAYLIB or RAYLIB_SHARED... For now, RAYLIB_SHARED and STATIC_RAYLIB may still be used, but print a deprecation warning.
2018-02-11pkg-config: Empty Requires.private on shared-only buildAhmad Fatoum
If user doesn't build the static library, `pkg-config --static --libs raylib` should be equivalent to `pkg-config --libs raylib`.
2018-02-04Bump version to 1.9.4Ahmad Fatoum
2018-02-03CMake: Add tristate option for using system GLFW (#455)Ahmad Fatoum
-DWITH_SYSTEM_GLFW=ON: Link against system glfw and fail otherwise -DWITH_SYSTEM_GLFW=OFF: Use embedded rglfw.c -DWITH_SYSTEM_GLFW=IF_POSSIBLE: Probe for system glfw but fallback to rglfw if unavailable Also change Linux 64-bit CI build to install system glfw and use it, so this doesn't bitrot. Addresses #453.
2018-02-03CMake: Fix typo in MACOS_FATLIBAhmad Fatoum
2018-01-27CMake: Search dependencies and build pkg-config's Libs.private with itAhmad Fatoum
2018-01-27CMake: remove OpenAL dependencyAhmad Fatoum
2017-12-11Add library versioning to Make/CMake build systemsAhmad Fatoum
See #401 for the discussion. Also bumps version number to 1.9.2 without the -dev, because neither ELF nor MachO like such a suffix. The -dev suffix will have to be restricted to the git tags.
2017-12-10Fix CI builds after mini_al changesAhmad Fatoum
2017-12-05Removed OpenAL Soft dependency on buildingRay San
OpenAL Soft backend is still available in audio module, I'm thinking if exposing it for building in some way or just left it there for advance users to switch to it manually in case of necessity...
2017-11-29Fixed broken include for AppVeyorMartinfx
2017-11-29Fixed use ${LIBS_PRIVATE} for FreeBSDMartinfx
2017-11-29Added compile with cmake for FreeBSDMartinfx
2017-11-25Build examples and games on Travis CIAhmad Fatoum
They were disabled because they failed to build, but this patch set fixes the build on Linux and macOS. This doesn't apply to the AppVeyor build on Windows yet; it currently fails at linking with OpenAL.
2017-11-25Added authorization tokenraysan5
2017-11-24Setup CMake package target and CI auto-deploy tagsAhmad Fatoum
cmake --build . --target package # or make package if make is used can now be used to create binary packages for raylib. AppVeyor and Travis CI are configured to push the artifacts that result from building git tags to the related Github releases page.