include(RunCMake)

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()
