mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
ENH: create new test to test subdir exclude
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
PROJECT(example1)
|
||||
ADD_EXECUTABLE(example1 example1.cxx)
|
||||
|
||||
ADD_CUSTOM_COMMAND(TARGET example1 POST_BUILD
|
||||
COMMAND "${CMAKE_COMMAND}" ARGS -E remove ${SUBDIR_BINARY_DIR}/ShouldBeHere
|
||||
COMMENT "Remove marker file that should exist because this should not be run")
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("example1\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user