summaryrefslogtreecommitdiffhomepage
path: root/examples/CMakeLists.txt
AgeCommit message (Collapse)Author
2019-11-01Fix generation of web examples (#1007)Pablo Marcos Oltra
At least on Linux, CMake seems to add automatically the '-rdynamic' flag. As a result, Emscripten generates a fat HTML file that does not work. Removing it allows HTML+JS+WASM generation.
2019-07-15Adding solar system examples. (#900)Aldrin Martoq
2019-06-14Remove example from Android buildingRay
2019-05-22Move emscripten web shell to srcRay
2019-05-15examples: CMake: restrict OpenGL deprecation warnings to macOSAhmad Fatoum
2019-05-04examples: CMake: warn once only about macOS OpenGL deprecationAhmad Fatoum
Otherwise compiling rlgl is too spammy. While at it remove the now unneeded CheckIncludeFiles.
2019-05-04examples: CMake: don't build core_loading_thread if no pthreadsAhmad Fatoum
The example requires pthreads and now C11 <stdatomic.h>, thus skip it if either isn't available. This also fixes the current Travis CI build failure for the Windows configuration.
2019-04-28Remove example on Androidraysan5
2019-04-08Avoid example on AndroidRay
2019-01-20cmake: preload resources into web examplesPiotr Balcer
No examples built for the Web platform functioned properly due to lack of resources in the virtual file system provided by emscripten. This patch addresses this problem by adding '--preload-file local_path/resources@resources' emcc option to link flags whenever necessary.
2019-01-20cmake: use ALLOW_MEMORY_GROWTH=1 for web examplesPiotr Balcer
The default memory limit for emscripten applications is 16 mergabytes, which might be to little for some examples, especially given that the resources are also included in that limit. Normally, using this option disables some asm.js optimizations, but there's no such cost for WebAssembly.
2019-01-09Adding basic palette-switching example using uniform arrays.Marco Lizza
2018-12-20Some tweaksRay
2018-12-18Avoid example on Android compilationRay
2018-07-29CMake: include rlgl_standalone in -DBUILD_EXAMPLESAhmad Fatoum
With the recent CMake cleanup, getting raylib's dependencies for use when building rlgl_standalone is quite straight forward, so lets enable it again. Fixes #508, just properly this time. :)
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-25CMake: Don't build rlgl_standalone as part of the examplesAhmad Fatoum
Closes #588.
2018-07-25Fix HTML5 examples and games using CMake (#589)Pablo Marcos Oltra
Mimic the Makefile by outputting html + js instead of LLVM IR.
2018-07-16Reviewed compilation optionsRay
2018-05-21CMake+Android: Skip tests with SetCameraModeAhmad Fatoum
src/core.c does explicitly skip including <camera.h> on Android and tests fail. Therefore skip these failing tests. Closes #507.
2018-05-21Move utils.cmake to separate cmake/ directoryAhmad Fatoum
2018-01-17CMake: build shape and texture examples (#432)kai
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-08-27CMake based build system.ASDF
Some people might find this handly