From f44ecaa4f27e7538ddcad66d40e543bffa2d2d86 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 4 Jun 2017 16:57:49 +0200 Subject: sync with upstream --- project/cmake/modules/FindTexturePacker.cmake | 41 --------------------------- 1 file changed, 41 deletions(-) delete mode 100644 project/cmake/modules/FindTexturePacker.cmake (limited to 'project/cmake/modules/FindTexturePacker.cmake') diff --git a/project/cmake/modules/FindTexturePacker.cmake b/project/cmake/modules/FindTexturePacker.cmake deleted file mode 100644 index f9e4c75..0000000 --- a/project/cmake/modules/FindTexturePacker.cmake +++ /dev/null @@ -1,41 +0,0 @@ -#.rst: -# FindTexturePacker -# ----------------- -# Finds the TexturePacker -# -# If WITH_TEXTUREPACKER is defined and points to a directory, -# this path will be used to search for the Texturepacker binary -# -# -# This will define the following (imported) targets:: -# -# TexturePacker::TexturePacker - The TexturePacker executable - -if(NOT TARGET TexturePacker::TexturePacker) - if(CMAKE_CROSSCOMPILING) - add_executable(TexturePacker::TexturePacker IMPORTED GLOBAL) - set_target_properties(TexturePacker::TexturePacker PROPERTIES - IMPORTED_LOCATION "${NATIVEPREFIX}/bin/TexturePacker") - elseif(WIN32) - add_executable(TexturePacker::TexturePacker IMPORTED GLOBAL) - set_target_properties(TexturePacker::TexturePacker PROPERTIES - IMPORTED_LOCATION "${CORE_SOURCE_DIR}/tools/TexturePacker/TexturePacker.exe") - else() - if(WITH_TEXTUREPACKER) - get_filename_component(_tppath ${WITH_TEXTUREPACKER} ABSOLUTE) - find_program(TEXTUREPACKER_EXECUTABLE TexturePacker PATHS ${_tppath}) - - include(FindPackageHandleStandardArgs) - find_package_handle_standard_args(TexturePacker DEFAULT_MSG TEXTUREPACKER_EXECUTABLE) - if(TEXTUREPACKER_FOUND) - add_executable(TexturePacker::TexturePacker IMPORTED GLOBAL) - set_target_properties(TexturePacker::TexturePacker PROPERTIES - IMPORTED_LOCATION "${TEXTUREPACKER_EXECUTABLE}") - endif() - mark_as_advanced(TEXTUREPACKER) - else() - add_subdirectory(${CORE_SOURCE_DIR}/tools/depends/native/TexturePacker build/texturepacker) - add_executable(TexturePacker::TexturePacker ALIAS TexturePacker) - endif() - endif() -endif() -- cgit v1.2.3