CMakeLists.txt 262 B

123456
  1. PROJECT(example1)
  2. ADD_EXECUTABLE(example1 example1.cxx)
  3. ADD_CUSTOM_COMMAND(TARGET example1 POST_BUILD
  4. COMMAND "${CMAKE_COMMAND}" ARGS -E remove ${SUBDIR_BINARY_DIR}/ShouldBeHere
  5. COMMENT "Remove marker file that should exist because this should not be run")