Created
June 16, 2019 16:57
-
-
Save xboard/b2badf2690a4fc4cce99f320d0ad4bd9 to your computer and use it in GitHub Desktop.
CMake project configuration to use wxWidget static libraries in MinGW.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.14) | |
project(HelloWorld) | |
set(wxWidgets_ROOT_DIR D:\\Projetos\\MinGW_Projects\\wxWidgets-3.0.4) | |
set(wxWidgets_LIB_DIR D:\\Projetos\\MinGW_Projects\\wxWidgets-3.0.4\\lib\\gcc_lib) | |
find_package(wxWidgets REQUIRED COMPONENTS net core base) | |
include(${wxWidgets_USE_FILE}) | |
set(CMAKE_CXX_STANDARD 17) | |
add_executable(HelloWorld main.cpp) | |
target_link_libraries(HelloWorld ${wxWidgets_LIBRARIES}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To test, you can use the wxWidget Hello World example : https://docs.wxwidgets.org/stable/overview_helloworld.html