summaryrefslogtreecommitdiffstats
path: root/Tests/MSManifest/Subdir/CMakeLists.txt
blob: 11272bb9fa635601c990feeab35aa72eec516140 (plain)
1
2
3
4
5
6
7
8
9
10
11
configure_file(test.manifest.in test.manifest)
add_executable(MSManifest main.c ${CMAKE_CURRENT_BINARY_DIR}/test.manifest)

if(MSVC AND NOT MSVC_VERSION LESS 1400)
  add_custom_command(TARGET MSManifest POST_BUILD VERBATIM
    COMMAND ${CMAKE_COMMAND} -Dexe=$<TARGET_FILE:MSManifest>
            -P ${CMAKE_CURRENT_SOURCE_DIR}/check.cmake
    )
  add_executable(MSManifestNone main.c)
  set_property(TARGET MSManifestNone PROPERTY LINK_FLAGS "/MANIFEST:NO")
endif()