summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindTexturePacker.cmake
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2016-03-08 21:02:53 +0100
committermanuel <manuel@mausz.at>2016-03-08 21:02:53 +0100
commit9fc8b732737f139d3e466510d75668ab45578960 (patch)
tree76db9bf5cb8cc869be908a5ed3d6f4cca3e3608a /project/cmake/modules/FindTexturePacker.cmake
parentb75e2659df11c23aa921d2eed83c23adc282ed27 (diff)
downloadkodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.gz
kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.bz2
kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.zip
sync with upstream
Diffstat (limited to 'project/cmake/modules/FindTexturePacker.cmake')
-rw-r--r--project/cmake/modules/FindTexturePacker.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/project/cmake/modules/FindTexturePacker.cmake b/project/cmake/modules/FindTexturePacker.cmake
new file mode 100644
index 0000000..2229ff7
--- /dev/null
+++ b/project/cmake/modules/FindTexturePacker.cmake
@@ -0,0 +1,23 @@
1#.rst:
2# FindTexturePacker
3# -----------------
4# Finds the TexturePacker
5#
6# This will define the following (imported) targets::
7#
8# TexturePacker::TexturePacker - The TexturePacker executable
9
10if(NOT TARGET TexturePacker::TexturePacker)
11 if(CMAKE_CROSSCOMPILING)
12 add_executable(TexturePacker::TexturePacker IMPORTED GLOBAL)
13 set_target_properties(TexturePacker::TexturePacker PROPERTIES
14 IMPORTED_LOCATION "${NATIVEPREFIX}/bin/TexturePacker")
15 elseif(WIN32)
16 add_executable(TexturePacker::TexturePacker IMPORTED GLOBAL)
17 set_target_properties(TexturePacker::TexturePacker PROPERTIES
18 IMPORTED_LOCATION "${CORE_SOURCE_DIR}/tools/TexturePacker/TexturePacker.exe")
19 else()
20 add_subdirectory(${CORE_SOURCE_DIR}/tools/depends/native/TexturePacker build/texturepacker)
21 add_executable(TexturePacker::TexturePacker ALIAS TexturePacker)
22 endif()
23endif()