CMakeLists.txt 577 B

12345678910111213
  1. configure_file(test_manifest1.in test_manifest1.manifest)
  2. configure_file(test_manifest2.in test_manifest2.manifest)
  3. configure_file(test_manifest3.in test_manifest3.manifest)
  4. add_executable(MSMultipleManifest main.c
  5. ${CMAKE_CURRENT_BINARY_DIR}/test_manifest1.manifest
  6. ${CMAKE_CURRENT_BINARY_DIR}/test_manifest2.manifest
  7. ${CMAKE_CURRENT_BINARY_DIR}/test_manifest3.manifest)
  8. if(MSVC AND NOT MSVC_VERSION LESS 1400)
  9. add_test(NAME MSManifest.Multiple COMMAND
  10. ${CMAKE_COMMAND} -Dexe=$<TARGET_FILE:MSMultipleManifest>
  11. -P ${CMAKE_CURRENT_SOURCE_DIR}/check.cmake)
  12. endif()