From 2e514935c37f46e44f9ae9cad4c7416b46a728ef Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Wed, 13 Jan 2016 23:17:30 +0300 Subject: Add test for ECMAddAppIcon. REVIEW: 126711 --- tests/ECMAddAppIconTest/CMakeLists.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/ECMAddAppIconTest/CMakeLists.txt (limited to 'tests/ECMAddAppIconTest/CMakeLists.txt') diff --git a/tests/ECMAddAppIconTest/CMakeLists.txt b/tests/ECMAddAppIconTest/CMakeLists.txt new file mode 100644 index 00000000..91da97ac --- /dev/null +++ b/tests/ECMAddAppIconTest/CMakeLists.txt @@ -0,0 +1,24 @@ +project(ECMAddAppIconTest) +cmake_minimum_required(VERSION 2.8.12) + +set(CMAKE_MODULE_PATH + ${CMAKE_CURRENT_SOURCE_DIR}/../../modules + ${CMAKE_CURRENT_SOURCE_DIR}/../../find-modules +) + +include(ECMAddAppIcon) + +set(ICONS 16-category-name.png 128-category-name.png) + +ecm_add_app_icon(OUT ICONS ${ICONS}) + +if(WIN32 OR APPLE) + if(${OUT} STREQUAL "") + message(FATAL_ERROR "ecm_add_app_icon() haven't produced anything") + endif() +endif() + +add_custom_target(t ALL DEPENDS ${OUT}) + +# this will be run by CTest +configure_file(check_files.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/check_files.cmake" @ONLY) -- cgit v1.2.1