summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeOnly/TargetScope/CMakeLists.txt
blob: faf22509926236e003cc50b92ea0f5a67e0690f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cmake_minimum_required (VERSION 2.8.12)
project(TargetScope NONE)

add_subdirectory(Sub)

if(TARGET SubLibLocal)
  message(FATAL_ERROR "SubLibLocal visible in top directory")
endif()
if(NOT TARGET SubLibGlobal)
  message(FATAL_ERROR "SubLibGlobal not visible in top directory")
endif()

add_subdirectory(Sib)