summaryrefslogtreecommitdiffstats
path: root/Tests/ObjC/simple-build-test/CMakeLists.txt
blob: 5ab46acd77e544d5dec68b4c9e5c6f888bfbdd07 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)