This is an example project for creating cross-platform apps with C++ for the article in my blog.
- Android
- iOS
- macOS
- Windows
- JNI
- Objective-C runtime
- CMake 3.20+ for everything except Android, 3.10 shipped with Android SDK
- Android Studio for Android developemtn
- Visual Studio for Windows development (Community Edition will be enough)
- Xcode for iOS and macOS development
- Gradle and Ninja are part of Android SDK
Just open the source root with Android Studio and hit Gradle Sync button on the top-right corner.
# Generate iOS project
cmake -G Xcode -S . -B build_ios -DCMAKE_SYSTEM_NAME=iOS
# Generate macOS project
cmake -G Xcode -S . -B build_macos
note: on iOS you'll need to set your devepoment team manually for code signing to work
# Generate Windows project
cmake -G "Visual Studio 15 2017 Win64" -S . -B build_windows