1enable_language(CXX) 2include(GoogleTest) 3 4enable_testing() 5 6include(xcode_sign_adhoc.cmake) 7 8# This creates the folder structure for the paramterized tests 9# to avoid handling missing folders in C++ 10# 11# This must match the match the name defined in xml_output.cpp 12# for every instance of tests with GetParam. 13# 14# The folder name is created fom the test name (output of the line 15# without leading spaces: "GoogleTestXMLSpecial/cases.") and 16# the parts until the last slash ("case/"). These parts are concatenated. 17file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/GoogleTestXMLSpecial/cases.case") 18 19add_executable(xml_output xml_output.cpp) 20xcode_sign_adhoc(xml_output) 21gtest_discover_tests( 22 xml_output 23 XML_OUTPUT_DIR ${CMAKE_BINARY_DIR} 24) 25