mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
9e66397c28
Add entries in Modules and Modules/Platform to support Objective-C++ compiler determination and identification. Add Modules to check Objective-C++ compiler flags, source compilations, program checks, etc... Use OBJCXX as the designator of the language, eg: project(foo OBJCXX) Add various tests for Objective-C++ language features. Add tests to preserve C++ handling of .M and .mm files when Objective-C++ is not a configured language. Co-authored-by: Cristian Adam <cristian.adam@gmail.com>
12 lines
296 B
CMake
12 lines
296 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
|
|
set(CMAKE_MACOSX_RPATH OFF)
|
|
|
|
project(simple-build-test OBJCXX)
|
|
|
|
add_library(foo SHARED foo.mm)
|
|
target_link_libraries(foo "-framework Foundation")
|
|
|
|
add_executable(simple-build-test main.mm)
|
|
target_link_libraries(simple-build-test "-framework Foundation" foo)
|