diff options
| author | Ahmad Fatoum <[email protected]> | 2017-11-25 20:27:53 +0100 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2017-11-25 21:45:31 +0100 |
| commit | f991a075e18df5e58bd6f6f90c1b02b5b353cbe3 (patch) | |
| tree | 051e2194584b063f9af06d8551b2e96d323b1528 /utils.cmake | |
| parent | 853cc6f4c96f4de94a11aa8317e98fd0e42c64fd (diff) | |
| download | raylib-f991a075e18df5e58bd6f6f90c1b02b5b353cbe3.tar.gz raylib-f991a075e18df5e58bd6f6f90c1b02b5b353cbe3.zip | |
Build examples and games on Travis CI
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.
Diffstat (limited to 'utils.cmake')
| -rw-r--r-- | utils.cmake | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/utils.cmake b/utils.cmake index 54221b9c..84c73fe2 100644 --- a/utils.cmake +++ b/utils.cmake @@ -12,8 +12,12 @@ if(APPLE) find_library(OPENGL_LIBRARY OpenGL) find_library(OPENAL_LIBRARY OpenAL) find_library(COCOA_LIBRARY Cocoa) + find_library(IOKIT_LIBRARY IOKit) + find_library(COREFOUNDATION_LIBRARY CoreFoundation) + find_library(COREVIDEO_LIBRARY CoreVideo) - set(LIBS_PRIVATE ${OPENGL_LIBRARY} ${OPENAL_LIBRARY} ${COCOA_LIBRARY}) + set(LIBS_PRIVATE ${OPENGL_LIBRARY} ${OPENAL_LIBRARY} ${COCOA_LIBRARY} + ${IOKIT_LIBRARY} ${COREFOUNDATION_LIBRARY} ${COREVIDEO_LIBRARY}) elseif(LINUX) # Elsewhere (such as Linux), need `-lopenal -lGL`, etc... set(LIBS_PRIVATE @@ -27,10 +31,10 @@ endif() # Do the linking for executables that are meant to link raylib function(link_libraries_to_executable executable) - # Link the libraries - target_link_libraries(${executable} ${LIBS_PRIVATE}) - # And raylib target_link_libraries(${executable} raylib) + + # Link the libraries + target_link_libraries(${executable} ${LIBS_PRIVATE}) endfunction() |
