summaryrefslogtreecommitdiffstats
path: root/Tests/EmptyDepends/CMakeLists.txt
blob: 5ba0b49ce9ae4f7f285f54c83efc1b8a1aa63530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cmake_minimum_required(VERSION 3.5)
project(EmptyDepends)

include(CTest)

set(extra_dep)

add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/qrc_my.cxx
  COMMAND ${CMAKE_COMMAND} -E touch "${CMAKE_BINARY_DIR}/qrc_my.cxx"
  DEPENDS "${extra_dep}" "${CMAKE_BINARY_DIR}/my.qrc")

add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/my.qrc
  COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_BINARY_DIR}/my.qrc)

add_library(qrc STATIC ${CMAKE_BINARY_DIR}/qrc_my.cxx)