equal
deleted
inserted
replaced
14 find_package(SDL_image REQUIRED) |
14 find_package(SDL_image REQUIRED) |
15 find_package(SDL_net REQUIRED) |
15 find_package(SDL_net REQUIRED) |
16 find_package(SDL_ttf REQUIRED) |
16 find_package(SDL_ttf REQUIRED) |
17 find_package(SDL_mixer REQUIRED) |
17 find_package(SDL_mixer REQUIRED) |
18 find_package(OGGVORBIS REQUIRED) |
18 find_package(OGGVORBIS REQUIRED) |
19 find_package(SPARKLE) |
19 if(NOT NOAUTOUPDATE) |
|
20 find_package(SPARKLE) |
|
21 if(SPARKLE_FOUND) |
|
22 set(SPARKLE_FOUND 1) |
|
23 else() |
|
24 set(SPARKLE_FOUND 0) |
|
25 endif() |
|
26 endif() |
20 |
27 |
21 #use the associated tool from the libraries we've selected |
28 #use the associated tool from the libraries we've selected |
22 string(REGEX REPLACE "(.*)/include.*" "\\1" qt_base_dir "${QT_INCLUDE_DIR}") |
29 string(REGEX REPLACE "(.*)/include.*" "\\1" qt_base_dir "${QT_INCLUDE_DIR}") |
23 find_program(macdeployqt_EXE NAMES macdeployqt macdeployqt-mac PATHS ${qt_base_dir}/bin NO_DEFAULT_PATH) |
30 find_program(macdeployqt_EXE NAMES macdeployqt macdeployqt-mac PATHS ${qt_base_dir}/bin NO_DEFAULT_PATH) |
24 |
31 |
33 |
40 |
34 set(frameworks_dir ${bundle_name}/Contents/Frameworks/) |
41 set(frameworks_dir ${bundle_name}/Contents/Frameworks/) |
35 |
42 |
36 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_dir "${SDL_LIBRARY}") |
43 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_dir "${SDL_LIBRARY}") |
37 |
44 |
38 if(SPARKLE_FOUND) |
|
39 set(SPARKLE_FOUND 1) |
|
40 else() |
|
41 set(SPARKLE_FOUND 0) |
|
42 endif() |
|
43 |
|
44 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/CreateMacBundle.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake) |
45 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/CreateMacBundle.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake) |
45 |
46 |
46 endif(APPLE AND BUNDLE) |
47 endif(APPLE AND BUNDLE) |