diff options
author | Brad King <brad.king@kitware.com> | 2016-08-16 17:26:22 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-08-16 17:26:22 (GMT) |
commit | e240a7c0176450e092e2398148c1e13f8940c239 (patch) | |
tree | 0a2c888b25c8c1db3e4326662d06198b8ddfb444 /Tests/ExternalProjectSourceSubdir | |
parent | 074d098ffb001c6e6c03483746c7bb6e02ab4484 (diff) | |
parent | a8345d65f359d75efb057d22976cfb92b4d477cf (diff) | |
download | CMake-e240a7c0176450e092e2398148c1e13f8940c239.zip CMake-e240a7c0176450e092e2398148c1e13f8940c239.tar.gz CMake-e240a7c0176450e092e2398148c1e13f8940c239.tar.bz2 |
Merge topic 'ExternalProject-SOURCE_SUBDIR'
a8345d65 ExternalProject: Add SOURCE_SUBDIR option
Diffstat (limited to 'Tests/ExternalProjectSourceSubdir')
-rw-r--r-- | Tests/ExternalProjectSourceSubdir/CMakeLists.txt | 10 | ||||
-rw-r--r-- | Tests/ExternalProjectSourceSubdir/Example/subdir/CMakeLists.txt | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Tests/ExternalProjectSourceSubdir/CMakeLists.txt b/Tests/ExternalProjectSourceSubdir/CMakeLists.txt new file mode 100644 index 0000000..4688acf --- /dev/null +++ b/Tests/ExternalProjectSourceSubdir/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.6) +project(ExternalProjectSourceSubdir NONE) +include(ExternalProject) + +ExternalProject_Add(Example + SOURCE_SUBDIR subdir + SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Example + BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/Example + INSTALL_COMMAND "" + ) diff --git a/Tests/ExternalProjectSourceSubdir/Example/subdir/CMakeLists.txt b/Tests/ExternalProjectSourceSubdir/Example/subdir/CMakeLists.txt new file mode 100644 index 0000000..bbc3ca0 --- /dev/null +++ b/Tests/ExternalProjectSourceSubdir/Example/subdir/CMakeLists.txt @@ -0,0 +1,2 @@ +cmake_minimum_required(VERSION 3.0) +project(empty) |