Skip to content
Discussion options

You must be logged in to vote

(Never used Objective-C)

The only tricky part is to use compileas

So you should have something like

project 'MyPureObjCProject'
  -- ...
  files {'src/**.cpp' }
  compileas 'Objective-C++'

project 'MyMixedProject'
  -- ...
  files {'cpp_src/*.cpp', 'objc_src/**.cpp' }
  filter { 'files:objc_src/*.cpp' }
    compileas 'Objective-C++'
  filter {}

'.m'/'.mm' extensions should even be treated as Objective-C/Objective-C++.
so even files {'src/**.mm'} should even do the job.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@m3makefile
Comment options

@Jarod42
Comment options

Answer selected by m3makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants