Giter VIP home page Giter VIP logo

wx_cmake_template's Introduction

wx_cmake_template

A template for multiplatform wxWidgets projects using CMake

How this works

This template searches for the wxWidgets library using FindPackage. If not found, it downloads the library source from GitHub, compiles it, and links it with the main project.

The super build pattern with ExternalProject_Add is used to achieve this.

Requirements

This works on Windows, Mac, and Linux. You'll need cmake and a C++ compiler (tested on clang, gcc, and MSVC).

Linux builds require the GTK3 library and headers installed in the system.

Building

To build the project, use:

cmake -S. -Bbuild
cmake --build build

This will create a directory named build and create all build artifacts there. The main executable can be found in the build/subprojects/Build/wx_cmake_template_core folder.

Using as a Template (Linux/Mac)

Use the provided copy_to_project.sh script to create another project from the template.

./copy_to_project.sh directory project_name

This will create a copy of the template's directory structure in directory, renaming wx_cmake_template to the provided project_name.

Notes

For details, see the blog post and the video tutorial showcasing the installation on Linux, Windows, and Mac OS X.


Check out the blog for more! www.lukesdevtutorials.com

wx_cmake_template's People

Contributors

lszl84 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.