build-cpp / cmkr

Modern build system based on CMake and TOML.
https://cmkr.build
MIT License
439 stars 27 forks source link

Add an example for WDK #58

Closed mrexodia closed 1 year ago

mrexodia commented 2 years ago

Example: https://github.com/build-cpp/cmkr/blob/bcbc9d2b20827322b4248772156f347356e62514/tests/driver/cmake.toml

cpkt9762 commented 1 year ago

//cmake/FindWdk.cmake cmake-before="""list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")""" [find-package] WDK = {} [target.drv] link-libraries = ["WDK"] ///

I set it up like this and found that the driver cannot be compiled. I don’t know how to refer to wdk_add_driver in findwdk in toml

cpkt9762 commented 1 year ago

wdk

mrexodia commented 1 year ago

A template is available here: https://github.com/build-cpp/wdk_template