Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Tests/CMakeOnly/TargetScope/CMakeLists.txt
3153 views
1
cmake_minimum_required(VERSION 3.10)
2
project(TargetScope NONE)
3
4
add_subdirectory(Sub)
5
6
if(TARGET SubLibLocal)
7
message(FATAL_ERROR "SubLibLocal visible in top directory")
8
endif()
9
if(NOT TARGET SubLibGlobal)
10
message(FATAL_ERROR "SubLibGlobal not visible in top directory")
11
endif()
12
13
add_subdirectory(Sib)
14
15