equal
deleted
inserted
replaced
6 add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") |
6 add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") |
7 endif() |
7 endif() |
8 |
8 |
9 if(APPLE AND NOT SKIPBUNDLE) |
9 if(APPLE AND NOT SKIPBUNDLE) |
10 find_package(Qt5 REQUIRED QUIET COMPONENTS Core Widgets Gui Network) |
10 find_package(Qt5 REQUIRED QUIET COMPONENTS Core Widgets Gui Network) |
11 find_package(SDL2 REQUIRED) |
11 find_package(SDL2 REQUIRED CONFIG) |
12 find_package(SDL2_image 2 REQUIRED) |
12 find_package(SDL2_image 2 REQUIRED) |
13 find_package(SDL2_net 2 REQUIRED) |
13 find_package(SDL2_net 2 REQUIRED) |
14 find_package(SDL2_ttf 2 REQUIRED) |
14 find_package(SDL2_ttf 2 REQUIRED) |
15 find_package(SDL2_mixer 2 REQUIRED) |
15 find_package(SDL2_mixer 2 REQUIRED) |
16 find_package(OggVorbis REQUIRED) |
16 find_package(OggVorbis REQUIRED) |
24 else() |
24 else() |
25 set(SPARKLE_FOUND 0) |
25 set(SPARKLE_FOUND 0) |
26 endif() |
26 endif() |
27 endif() |
27 endif() |
28 |
28 |
29 #remove the ";-framework Cocoa" from the SDL2_LIBRARY variable |
29 #remove the ";-framework Cocoa" from the SDL2_LIBRARIES variable |
30 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_library_only "${SDL2_LIBRARY}") |
30 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_library_only "${SDL2_LIBRARIES}") |
31 #remove the "libSDLmain.a" from the SDL2_LIBRARY variable |
31 #remove the "libSDLmain.a" from the SDL2_LIBRARIES variable |
32 string(REGEX REPLACE ".*;(.*)" "\\1" sdl_library_only "${sdl_library_only}") |
32 string(REGEX REPLACE ".*;(.*)" "\\1" sdl_library_only "${sdl_library_only}") |
33 |
33 |
34 #get the neme of the library (harmelss if it is static) |
34 #get the neme of the library (harmelss if it is static) |
35 string(REGEX REPLACE ".*/(.*)$" "\\1" PNG_LIBNAME "${PNG_LIBRARY}") |
35 string(REGEX REPLACE ".*/(.*)$" "\\1" PNG_LIBNAME "${PNG_LIBRARY}") |
36 string(REGEX REPLACE ".*/(.*)$" "\\1" ZLIB_LIBNAME "${ZLIB_LIBRARY}") |
36 string(REGEX REPLACE ".*/(.*)$" "\\1" ZLIB_LIBNAME "${ZLIB_LIBRARY}") |