CMake: Use find_package with CONFIG mode in the minimal sample

This commit is contained in:
Maarten Bent 2022-06-18 16:00:52 +02:00
parent f6631a3d6a
commit 629866d71b

View File

@ -30,10 +30,12 @@ endif()
project(minimal) project(minimal)
# Request the required wxWidgets libs # Request the required wxWidgets libs
find_package(wxWidgets 3.1 COMPONENTS core base REQUIRED) find_package(wxWidgets 3.1 COMPONENTS core base REQUIRED CONFIG)
# Include the wxWidgets use file to initialize various settings # Include the wxWidgets use file to initialize various settings
include(${wxWidgets_USE_FILE}) if(wxWidgets_USE_FILE)
include(${wxWidgets_USE_FILE})
endif()
# Define a variable containing a list of source files for the project # Define a variable containing a list of source files for the project
set(SRC_FILES set(SRC_FILES