equal
deleted
inserted
replaced
1 if (APPLE AND BUNDLE) |
1 if (APPLE AND BUNDLE) |
2 |
2 |
3 find_package(OGGVORBIS) |
3 find_package(OGGVORBIS REQUIRED) |
|
4 find_package(SPARKLE REQUIRED) |
4 find_program(macdeployqt_EXE NAMES macdeployqt macdeployqt-mac) |
5 find_program(macdeployqt_EXE NAMES macdeployqt macdeployqt-mac) |
5 |
6 |
6 if(NOT macdeployqt_EXE) |
7 if(NOT macdeployqt_EXE) |
7 message(FATAL_ERROR "The utility macdeployqt is required to create the bundle!") |
8 message(FATAL_ERROR "The utility macdeployqt is required to create the bundle!") |
8 endif() |
9 endif() |
14 |
15 |
15 set(frameworks_dir ${bundle_name}/Contents/Frameworks/) |
16 set(frameworks_dir ${bundle_name}/Contents/Frameworks/) |
16 |
17 |
17 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_dir "${SDL_LIBRARY}") |
18 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_dir "${SDL_LIBRARY}") |
18 |
19 |
|
20 if(SPARKLE_FOUND) |
|
21 set(SPARKLE_FOUND 1) |
|
22 else() |
|
23 set(SPARKLE_FOUND 0) |
|
24 endif() |
|
25 |
19 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/CreateMacBundle.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake) |
26 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/CreateMacBundle.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake) |
20 |
27 |
21 endif(APPLE AND BUNDLE) |
28 endif(APPLE AND BUNDLE) |