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) |
9 if(APPLE) |
10 find_package(Qt4 REQUIRED QUIET) |
10 find_package(Qt4 REQUIRED QUIET) |
|
11 find_package(PNG REQUIRED) |
11 find_package(SDL REQUIRED) |
12 find_package(SDL REQUIRED) |
12 find_package(SDL_image REQUIRED) |
13 find_package(SDL_image REQUIRED) |
13 find_package(SDL_net REQUIRED) |
14 find_package(SDL_net REQUIRED) |
14 find_package(SDL_ttf REQUIRED) |
15 find_package(SDL_ttf REQUIRED) |
15 find_package(SDL_mixer REQUIRED) |
16 find_package(SDL_mixer REQUIRED) |
30 #remove the ";-framework Cocoa" from the SDL_LIBRARY variable |
31 #remove the ";-framework Cocoa" from the SDL_LIBRARY variable |
31 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_library_only "${SDL_LIBRARY}") |
32 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_library_only "${SDL_LIBRARY}") |
32 #remove the "libSDLmain.a" from the SDL_LIBRARY variable |
33 #remove the "libSDLmain.a" from the SDL_LIBRARY variable |
33 string(REGEX REPLACE ".*;(.*)" "\\1" sdl_library_only "${sdl_library_only}") |
34 string(REGEX REPLACE ".*;(.*)" "\\1" sdl_library_only "${sdl_library_only}") |
34 |
35 |
35 if(NOT NOPNG) |
36 #get the neme of the library (harmelss if it is static) |
36 #get the neme of the library (harmelss if it is static) |
37 string(REGEX REPLACE ".*/(.*)$" "\\1" PNG_LIBNAME "${PNG_LIBRARY}") |
37 string(REGEX REPLACE ".*/(.*)$" "\\1" PNG_LIBNAME "${PNG_LIBRARY}") |
38 string(REGEX REPLACE ".*/(.*)$" "\\1" ZLIB_LIBNAME "${ZLIB_LIBRARY}") |
38 string(REGEX REPLACE ".*/(.*)$" "\\1" ZLIB_LIBNAME "${ZLIB_LIBRARY}") |
|
39 endif() |
|
40 |
39 |
41 set(frameworks_dir ${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}) |
40 set(frameworks_dir ${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}) |
42 if(${BUILD_ENGINE_LIBRARY}) |
41 if(${BUILD_ENGINE_LIBRARY}) |
43 set(engine_full_path "${frameworks_dir}/${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}") |
42 set(engine_full_path "${frameworks_dir}/${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}") |
44 else() |
43 else() |