mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 23:01:36 +08:00
48d15f4db6
* Add wxwidgets example and test port * Fix library processing for export Split original patch. Restore missing appending in the end. Drop libs (generator expression) which don't match build type. * Make wx-config relocatable * Rewrite wrapper * Add missing libjpeg-turbo dependency * Fixup wxrc * Update usage * Validate release/debug consistency * Fixup wx-config symlink * Use non-deprecated license expression * Fix portfile quirks * Transform installation fixup into patch * Fix mingw * Control curl dependency * Add message for linux system package dependencies * Update versions * Resolve linux lib issues * Update versions * Minor amendments * Update versions * Update requirements warning * Update versions * CR request: Move CMakelists.txt to example dir * CR requests: Revise wrapper * Update versions
22 lines
709 B
CMake
22 lines
709 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()
|