raylib/cmake
hristo 6e79476650
Fixed the build for web using CMake. (#1452)
* Fixed the build for web using CMake.

I found that the build for me was failing and I added some if defined checks in the core.c file where the glfwSetWindowAttrib was used. (error: implicit declaration of function 'glfwSetWindowAttrib' is invalid in C99 [-Werror,-Wimplicit-function-declaration])

I also changed some values in the toolchain file so that it correctly uses the .bat files when on windows.

* Cleaned up the additional variables (they are not important)

* Added more improvements to cmakelists

Added the option to use the system provided Emscripten toolchain to be more uniform with other libraries.

Fixed and issue which prevented example being built from cmake and also building with html extensions properly.

* Fixed ENUM to STRING because of a missed warning
2020-12-13 20:29:47 +01:00
..
AddIfFlagCompiles.cmake CMake: Move reusable code to new cmake/ directory 2018-05-21 01:08:29 +02:00
BuildType.cmake CMake: Add default build type if none specified 2018-05-21 01:08:28 +02:00
emscripten.cmake Fixed the build for web using CMake. (#1452) 2020-12-13 20:29:47 +01:00
EnumOption.cmake CMake: Fail when -D{PLATFORM,OPENGL_VERSION}=INVALID_VALUE 2018-07-23 21:00:48 +02:00
JoinPaths.cmake Add join_paths and join prefix with include/lib dirs (#1383) 2020-09-25 16:20:49 +02:00
LibraryPathToLinkerFlags.cmake CMake: Major cleanup to support find_package(raylib) 2018-07-29 12:35:35 +02:00
PopulateConfigVariablesLocally.cmake CMake: Major cleanup to support find_package(raylib) 2018-07-29 12:35:35 +02:00
raylib-config-version.cmake CMake: Major cleanup to support find_package(raylib) 2018-07-29 12:35:35 +02:00
raylib-config.cmake CMake: fix dependency build with -Draylib_USE_STATIC_LIBS=ON 2019-07-24 00:12:38 +02:00
test-pkgconfig.sh Travis CI: Add test case for pkg-config 2018-07-03 21:35:28 +02:00