summaryrefslogtreecommitdiff
path: root/xmake/templates/objc++/console/project/xmake.lua
blob: dda69c1f7ec8770f90218bc49d79b47785138697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-- add modes: debug and release
add_rules("mode.debug", "mode.release")

-- add target
target("${TARGETNAME}")

    -- set kind
    set_kind("binary")

    -- add files
    add_files("src/*.mm")

    -- for macosx or ios
    if is_os("macosx", "ios") then
        add_mxflags("-fobjc-arc")
    end

    -- add frameworks
    add_frameworks("Foundation", "CoreFoundation")

${FAQ}