Skip to content

Instantly share code, notes, and snippets.

@johnfredcee
Created June 11, 2019 13:50
Show Gist options
  • Save johnfredcee/c7133e28d4b0c23ba5af7437544d41a6 to your computer and use it in GitHub Desktop.
Save johnfredcee/c7133e28d4b0c23ba5af7437544d41a6 to your computer and use it in GitHub Desktop.
CMake for wxWidgets HelloWorld
cmake_minimum_required(VERSION 3.1)
project(wxApp CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(wxWidgets_USE_LIBS)
find_package(wxWidgets)
include(${wxWidgets_USE_FILE})
include_directories(${wxWidgets_INCLUDE_DIRS})
add_executable(${PROJECT_NAME} WIN32 wxapp.cpp)
target_link_libraries(${PROJECT_NAME} ${wxWidgets_LIBRARIES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment