tools/CMakeLists.txt
changeset 11609 b77870abb3c4
parent 11362 ed5a6478e710
child 11610 523b153f7f22
equal deleted inserted replaced
11608:ed70d59479d7 11609:b77870abb3c4
    27     endif()
    27     endif()
    28 
    28 
    29     #use the associated tool from the libraries we've selected
    29     #use the associated tool from the libraries we've selected
    30     string(REGEX REPLACE "(.*)/include.*" "\\1" qt_base_dir "${QT_INCLUDE_DIR}")
    30     string(REGEX REPLACE "(.*)/include.*" "\\1" qt_base_dir "${QT_INCLUDE_DIR}")
    31 
    31 
    32     #remove the ";-framework Cocoa" from the SDL_LIBRARY variable
    32     #remove the ";-framework Cocoa" from the SDL2_LIBRARY variable
    33     string(REGEX REPLACE "(.*);-.*" "\\1" sdl_library_only "${SDL_LIBRARY}")
    33     string(REGEX REPLACE "(.*);-.*" "\\1" sdl_library_only "${SDL2_LIBRARY}")
    34     #remove the "libSDLmain.a" from the SDL_LIBRARY variable
    34     #remove the "libSDLmain.a" from the SDL2_LIBRARY variable
    35     string(REGEX REPLACE ".*;(.*)" "\\1" sdl_library_only "${sdl_library_only}")
    35     string(REGEX REPLACE ".*;(.*)" "\\1" sdl_library_only "${sdl_library_only}")
    36 
    36 
    37     #get the neme of the library (harmelss if it is static)
    37     #get the neme of the library (harmelss if it is static)
    38     string(REGEX REPLACE ".*/(.*)$" "\\1" PNG_LIBNAME "${PNG_LIBRARY}")
    38     string(REGEX REPLACE ".*/(.*)$" "\\1" PNG_LIBNAME "${PNG_LIBRARY}")
    39     string(REGEX REPLACE ".*/(.*)$" "\\1" ZLIB_LIBNAME "${ZLIB_LIBRARY}")
    39     string(REGEX REPLACE ".*/(.*)$" "\\1" ZLIB_LIBNAME "${ZLIB_LIBRARY}")