2015-09-16 17:24:16 +03:00
|
|
|
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
|
|
|
|
)
|
2015-11-18 17:10:51 +03:00
|
|
|
add_executable(MSManifestNone main.c)
|
|
|
|
set_property(TARGET MSManifestNone PROPERTY LINK_FLAGS "/MANIFEST:NO")
|
2015-09-16 17:24:16 +03:00
|
|
|
endif()
|