diff options
author | David Cole <david.cole@kitware.com> | 2012-11-21 15:23:17 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-11-21 16:29:10 (GMT) |
commit | 078e35defbe6e0ee3b216dd2e83ca85d49920fc3 (patch) | |
tree | 2a38d78b24b1739aa538ccf5aa5ee4ca77a3b03f /Tests/EmptyDepends | |
parent | b336d9a0498abefb01b080eaf613bf79cfaefb6e (diff) | |
download | CMake-078e35defbe6e0ee3b216dd2e83ca85d49920fc3.zip CMake-078e35defbe6e0ee3b216dd2e83ca85d49920fc3.tar.gz CMake-078e35defbe6e0ee3b216dd2e83ca85d49920fc3.tar.bz2 |
NMake: Add a test to demonstrate EmptyDepends issue (#13392)
Diffstat (limited to 'Tests/EmptyDepends')
-rw-r--r-- | Tests/EmptyDepends/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/EmptyDepends/CMakeLists.txt b/Tests/EmptyDepends/CMakeLists.txt new file mode 100644 index 0000000..a24382c --- /dev/null +++ b/Tests/EmptyDepends/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 2.8) +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 SHARED ${CMAKE_BINARY_DIR}/qrc_my.cxx) |