summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/add_library/RunCMakeTest.cmake
blob: dfadb8fc18b554aef35a48a304a8743bef9a0003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
include(RunCMake)

run_cmake(CMP0073)

run_cmake(INTERFACEwithNoSources)
run_cmake(OBJECTwithNoSources)
run_cmake(STATICwithNoSources)
run_cmake(SHAREDwithNoSources)
run_cmake(MODULEwithNoSources)
run_cmake(UNKNOWNwithNoSources)

run_cmake(INTERFACEwithOnlyObjectSources)
run_cmake(OBJECTwithOnlyObjectSources)
run_cmake(STATICwithOnlyObjectSources)
run_cmake(SHAREDwithOnlyObjectSources)
run_cmake(MODULEwithOnlyObjectSources)
run_cmake(UNKNOWNwithOnlyObjectSources)

if(NOT RunCMake_GENERATOR STREQUAL "Xcode" OR NOT "$ENV{CMAKE_OSX_ARCHITECTURES}" MATCHES "[;$]")
  run_cmake(INTERFACEwithNoSourcesButLinkObjects)
  run_cmake(OBJECTwithNoSourcesButLinkObjects)
  run_cmake(STATICwithNoSourcesButLinkObjects)
  run_cmake(SHAREDwithNoSourcesButLinkObjects)
  run_cmake(MODULEwithNoSourcesButLinkObjects)
  run_cmake(UNKNOWNwithNoSourcesButLinkObjects)
endif()