CPM.cmake icon indicating copy to clipboard operation
CPM.cmake copied to clipboard

wxWidgets example

Open idotta opened this issue 2 years ago • 0 comments

Hi there! Would someone please show me an example on how to use CPM to build a project using wxWidgets?

I couldn't make it work and I'm not experienced with CMake. I know there's something missing, but I can't figure out what. I'm trying to do it simply by using:

CPMAddPackage("gh:wxWidgets/[email protected]")
include(${wxWidgets_USE_FILE})
add_executable(app main.cpp)
target_link_libraries(app PRIVATE ${wxWidgets_LIBRARIES})

idotta avatar Nov 27 '23 11:11 idotta