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.
12 lines
292 B
12 lines
292 B
5 years ago
|
cmake_minimum_required(VERSION 3.15)
|
||
|
|
||
|
set(CMAKE_MACOSX_RPATH OFF)
|
||
|
|
||
|
project(simple-build-test OBJC)
|
||
|
|
||
|
add_library(foo SHARED foo.m)
|
||
|
target_link_libraries(foo "-framework Foundation")
|
||
|
|
||
|
add_executable(simple-build-test main.m)
|
||
|
target_link_libraries(simple-build-test "-framework Foundation" foo)
|