Created
June 11, 2019 13:50
-
-
Save johnfredcee/c7133e28d4b0c23ba5af7437544d41a6 to your computer and use it in GitHub Desktop.
CMake for wxWidgets HelloWorld
This file contains hidden or 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.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