mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-25 15:49:08 -05:00
1cf43dcf7c
Add an ExternalProjectSubdir test directory with a minimal test showing use of ExternalProject_Add for a source tree in a subdirectory. This will allow us to easily add test external projects that cover specific behavior where the client project must check results.
15 lines
327 B
CMake
15 lines
327 B
CMake
cmake_minimum_required(VERSION 3.2)
|
|
project(ExternalProjectSubdir NONE)
|
|
include(ExternalProject)
|
|
|
|
ExternalProject_Add(Subdir1
|
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Subdir1
|
|
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/Subdir1
|
|
|
|
CMAKE_ARGS -DNORMAL_VAR=NORMAL_VALUE
|
|
LOG_CONFIGURE 1
|
|
|
|
BUILD_COMMAND ""
|
|
INSTALL_COMMAND ""
|
|
)
|