13 lines
274 B
CMake
13 lines
274 B
CMake
enable_language(CXX)
|
|
enable_language(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)
|