this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Create function for xcproj (#411)

+26
+26
cmake/xcproj.cmake
··· 1 + function(xcproj) 2 + set(options) 3 + set(oneValueArgs PROJECT) 4 + set(multiValueArgs EXECUTABLES LIBRARIES FRAMEWORKS) 5 + cmake_parse_arguments(xcproj "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) 6 + 7 + set(product_dir ${CMAKE_CURRENT_BINARY_DIR}/Build/Products/Release) 8 + 9 + foreach(executable ${xcproj_EXECUTABLES}) 10 + set(output ${output} ${product_dir}/${executable}) 11 + endforeach() 12 + 13 + foreach(library ${xcproj_LIBRARIES}) 14 + set(output ${output} ${product_dir}/${library}.dylib) 15 + endforeach() 16 + 17 + foreach(framework ${xcproj_FRAMEWORKS}) 18 + set(output ${output} ${product_dir}/${framework}.framework/${framework}) 19 + endforeach() 20 + 21 + add_custom_command( 22 + OUTPUT ${output} 23 + COMMAND env RUNTIME_SPEC_PATH=${CMAKE_SOURCE_DIR}/src/external/xcbuild/Specifications/ DEVELOPER_DIR=${CMAKE_SOURCE_DIR}/Developer/ ${CMAKE_BINARY_DIR}/src/external/xcbuild/xcodebuild -project ${xcproj_PROJECT} 24 + DEPENDS xcbuild 25 + ) 26 + endfunction(xcproj)