• Stars
    star
    144
  • Rank 255,590 (Top 6 %)
  • Language
    C++
  • License
    MIT License
  • Created about 4 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A template for multiplatform WxWidgets projects using CMake

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.justdevtutorials.com

More Repositories

1

wx_cmake_fetchcontent_template

Simplified CMake template C++ GUI projects with automatic dependency downloading
CMake
26
star
2

wx_gl_shadertoy_tutorial

Building a Desktop tool for experimenting with GLSL shaders
C++
16
star
3

wx_sizers_tutorial

wxWidgets Sizers and Splitters tutorial
CMake
13
star
4

wx_drawing_tutorial

C++
13
star
5

wx_wrapsizers_tutorial

C++
11
star
6

metal_tutorials_youtube

Apple Metal Programming Tutorials
Swift
8
star
7

wx_listctrl_tutorial

C++
7
star
8

wx_opengl_tutorial

CMake Setup for Modern OpenGL and wxWidgets
C++
7
star
9

wx_transforms_tutorial

Practical Affine Transformations for a 2D Paint App in C++
C++
7
star
10

wx_document_tutorial

Document/View Framework - wxWidgets C++ Tutorial
C++
6
star
11

btc-momentum-trader

BTC momentum based scalping bot, working on live Binance WebSocket data
Python
6
star
12

wx_yield_tutorial

C++
5
star
13

wx_advanced_grid_layouts_tutorial

C++
5
star
14

wx_dialogs_tutorial

wxWidgets Dialogs Tutorial
C++
5
star
15

wx_animations_tutorial

C++
4
star
16

wx_data_sharing_tutorial

C++
4
star
17

wx_wxthread_tutorial

C++
4
star
18

wx_transparency_tutorial

Transparency and Alpha Channels in wxWidgets
C++
4
star
19

wx_gl_cube_tutorial

C++
4
star
20

wx_webrequest_tutorial

C++
3
star
21

wx_textctrl_tutorial

C++
3
star
22

wx_wxftp_tutorial

C++
3
star
23

wx_stdthread_tutorial

C++
3
star
24

wx_zip_tutorial

C++
3
star
25

wx_stdvariant_tutorial

C++
3
star
26

wx_scrollbars_tutorial

C++
3
star
27

wx_logging_tutorial

C++
3
star
28

glfw_opengl_cmake_template

CMake template for OpenGL Desktop Apps that downloads GLFW, GLEW and GLM from GitHub.
C++
3
star
29

wx_menus_tutorial

C++
3
star
30

wx_events_tutorial

C++
2
star
31

wx_xml_tutorial

Using wxXmlDocument to serialize data in C++
C++
2
star
32

wx_visitor_tutorial

C++
2
star
33

py_wx_matplotlib_tutorial

Python
2
star
34

wxjson-modern-build

Modified minimal wxJSON implementation for building with CMake
C++
1
star
35

wx_basic_undo_tutorial

C++
1
star
36

py_wx_intro_tutorial

Introduction to wxPython - a tutorial
Python
1
star
37

wx_filehistory_tutorial

How to use wxFileHistory in wxWidgets
C++
1
star
38

gdlt

Godot Lightweight Testing Suite
GDScript
1
star