blob: dc556c1dbcb6439b522d2f5e984b2403a85b2b3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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)
list(LENGTH OUT out_count)
if(out_count EQUAL 0)
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)
|