You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
307 B
13 lines
307 B
5 years ago
|
cmake_minimum_required(VERSION 3.15)
|
||
|
project(objcxxtest LANGUAGES CXX OBJCXX)
|
||
|
|
||
|
include(CheckOBJCXXCompilerFlag)
|
||
|
check_objcxx_compiler_flag(-fobjc-arc HAVE_OBJC_ARC)
|
||
|
|
||
|
if(HAVE_OBJC_ARC)
|
||
|
add_compile_options(-fobjc-arc)
|
||
|
add_compile_definitions(HAVE_OBJC_ARC)
|
||
|
endif()
|
||
|
|
||
|
add_library(myfuncs STATIC myfuncs.mm)
|