summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FileAPI/codemodel-v2.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-13 12:00:33 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2018-12-12 20:12:26 (GMT)
commiteb8c7676a4723a44245e47630f12d4868e8e182c (patch)
tree20ffcfb48ea6f109eedf1dddf016f740db9b1640 /Tests/RunCMake/FileAPI/codemodel-v2.cmake
parent42f0125ceb6c34ce5a67e9954d1831b2aeb263ba (diff)
downloadCMake-eb8c7676a4723a44245e47630f12d4868e8e182c.zip
CMake-eb8c7676a4723a44245e47630f12d4868e8e182c.tar.gz
CMake-eb8c7676a4723a44245e47630f12d4868e8e182c.tar.bz2
fileapi: extend codemodel v2 with a project model
Offer clients a `project()`-centric view of the build system. This is similar to the directory-centric view but consolidates subdirectories that do not call `project()` with a new project name. Issue: #18398 Co-Author: Kyle Edwards <kyle.edwards@kitware.com>
Diffstat (limited to 'Tests/RunCMake/FileAPI/codemodel-v2.cmake')
-rw-r--r--Tests/RunCMake/FileAPI/codemodel-v2.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/FileAPI/codemodel-v2.cmake b/Tests/RunCMake/FileAPI/codemodel-v2.cmake
index dca1dd1..72073d5 100644
--- a/Tests/RunCMake/FileAPI/codemodel-v2.cmake
+++ b/Tests/RunCMake/FileAPI/codemodel-v2.cmake
@@ -20,6 +20,7 @@ add_subdirectory(object)
add_subdirectory(imported)
add_subdirectory(custom)
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../FileAPIExternalSource" "${CMAKE_CURRENT_BINARY_DIR}/../FileAPIExternalBuild")
+add_subdirectory(dir)
set_property(TARGET c_shared_lib PROPERTY LIBRARY_OUTPUT_DIRECTORY lib)
set_property(TARGET c_shared_lib PROPERTY RUNTIME_OUTPUT_DIRECTORY lib)