简体   繁体   中英

Using XCode and CodeBlocks on the same C++ SDL2 project

I've just received a MacBook Pro for cross-platform game development. I've been making an SDL2 game project on CodeBlocks for Windows and Linux, and everything's fine on both operating systems so far. However, when it comes to Mac OS X, it seems I've got to use XCode instead.

I could figure out how to create a working SDL project in XCode. However, I would like to create an XCode project that shares the same source code as my CodeBlocks project, which happens to be on a Git repository. I've yet to find out how to do that. However, I've already put the #ifdef platform preprocessor instructions in my source code.

Could you give me some tips for doing that?

使用CMake生成特定于平台的Makefile / IDE项目。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM