<commit_before># Copyright (c) 2013, <NAME>
# All rights reserved.

# iOS project example.
# Create project as Xcode: iOS -> Application -> Single View Application

cmake_minimum_required(VERSION 2.8.8)
project(06-example-ios.single_view_application CXX)

include("$ENV{SUGAR_ROOT}/cmake/Sugar")

include(sugar_include)
include(sugar_mark_macosx_resources)
include(sugar_set_xcode_ios_sdkroot)

find_package(Boost REQUIRED) # for |boost::ignore_unused_variable_warning|

# !HACK! (if 'include_directories' will be used, '/usr/local/include' will be
# substituted to '/.../Xcode.app/.../urs/local/include')
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${Boost_INCLUDE_DIRS}")

sugar_include("./sources")
sugar_include("${SUGAR_ROOT}/examples/resources/ios/images")
sugar_include("${SUGAR_ROOT}/examples/resources/ios/storyboards")

set(RESOURCES ${DEFAULT_IOS_IMAGES} ${IOS_STORYBOARDS_RESOURCES})
sugar_mark_macosx_resources(${RESOURCES})

set(PLIST_FILE "${SUGAR_ROOT}/examples/plist/ios/storyboard.plist.in")
set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.example.sugar.ios.SingleViewApplication")

if(NOT XCODE_VERSION)
  sugar_fatal_error("Xcode only")
endif()

add_executable(example MACOSX_BUNDLE ${SOURCES} ${RESOURCES})
sugar_set_xcode_ios_sdkroot(TARGET example PLIST ${PLIST_FILE})<commit_msg>iOS universal device (iPad + iPhone)<commit_after># Copyright (c) 2013, <NAME>
# All rights reserved.

# iOS project example.
# Create project as Xcode: iOS -> Application -> Single View Application

cmake_minimum_required(VERSION 2.8.8)
project(06-example-ios.single_view_application CXX)

include("$ENV{SUGAR_ROOT}/cmake/Sugar")

include(sugar_include)
include(sugar_mark_macosx_resources)
include(sugar_set_xcode_ios_sdkroot)

find_package(Boost REQUIRED) # for |boost::ignore_unused_variable_warning|

# !HACK! (if 'include_directories' will be used, '/usr/local/include' will be
# substituted to '/.../Xcode.app/.../urs/local/include')
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${Boost_INCLUDE_DIRS}")

sugar_include("./sources")
sugar_include("${SUGAR_ROOT}/examples/resources/ios/images")
sugar_include("${SUGAR_ROOT}/examples/resources/ios/storyboards")

set(RESOURCES ${DEFAULT_IOS_IMAGES} ${IOS_STORYBOARDS_RESOURCES})
sugar_mark_macosx_resources(${RESOURCES})

set(PLIST_FILE "${SUGAR_ROOT}/examples/plist/ios/storyboard.plist.in")
set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.example.sugar.ios.SingleViewApplication")

if(NOT XCODE_VERSION)
  sugar_fatal_error("Xcode only")
endif()

add_executable(example MACOSX_BUNDLE ${SOURCES} ${RESOURCES})
sugar_set_xcode_ios_sdkroot(TARGET example PLIST ${PLIST_FILE})

# Universal device (iPad, iPhone)
set_target_properties(
    example PROPERTIES XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2"
)
{'fraction_non_alphanumeric': 0.1309915843395536, 'fraction_numerical': 0.007317965605561654, 'mean_word_length': 8.113333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5447072', 'n_tokens_mistral': 1056, 'n_tokens_neox': 993, 'n_words': 154}