mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 10:59:17 +08:00
88b3aedb3b
* Revert "[wxwidgets] Remove debug asserts from Release build. (#25240)"
This reverts commit 6e16931acd
.
* Update to 3.1.7
* Update installation layout
* Upstream CMake export is not ready for use
* Update versions
* Remove obsolete patch
* Use msvc layout for mingw on windows
* Add debug-support feature
* Update versions
* Fix condition
* Update versions
* Restore symlink patch
* Update versions
* Remove trace option from test port
* Enable testing without feature debug-support
* Fixup defaults for using without debug support
* Expect wxrc-3.1 for mingw cross builds ("unix" layout)
* Update versions
27 lines
877 B
CMake
27 lines
877 B
CMake
cmake_minimum_required(VERSION 3.7)
|
|
|
|
project(wxwidgets-example)
|
|
|
|
add_executable(main WIN32 popup.cpp)
|
|
|
|
find_package(wxWidgets REQUIRED)
|
|
target_compile_definitions(main PRIVATE ${wxWidgets_DEFINITIONS} "$<$<CONFIG:DEBUG>:${wxWidgets_DEFINITIONS_DEBUG}>")
|
|
target_include_directories(main PRIVATE ${wxWidgets_INCLUDE_DIRS})
|
|
target_link_libraries(main PRIVATE ${wxWidgets_LIBRARIES})
|
|
|
|
option(USE_WXRC "Use the wxrc resource compiler" ON)
|
|
if(USE_WXRC)
|
|
execute_process(
|
|
COMMAND "${wxWidgets_wxrc_EXECUTABLE}" --help
|
|
RESULTS_VARIABLE error_result
|
|
)
|
|
if(error_result)
|
|
message(FATAL_ERROR "Failed to run wxWidgets_wxrc_EXECUTABLE (${wxWidgets_wxrc_EXECUTABLE})")
|
|
endif()
|
|
endif()
|
|
|
|
set(PRINT_VARS "" CACHE STRING "Variables to print at the end of configuration")
|
|
foreach(var IN LISTS PRINT_VARS)
|
|
message(STATUS "${var}:=${${var}}")
|
|
endforeach()
|