# build the library with modern cmake

**URL:** <https://discourse.cmake.org/t/build-the-library-with-modern-cmake/11735>\
**Category:** Code\
**Tags:** os:windows\
**Created:** [September 20, 2024, 4:36am UTC](https://discourse.cmake.org/t/build-the-library-with-modern-cmake/11735 "2024-09-20T04:36:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sea\_Sea](https://discourse.cmake.org/user_avatar/discourse.cmake.org/sea_sea/32/4025_2.png) [@Sea\_Sea](https://discourse.cmake.org/u/Sea_Sea)\
**Post date:** [September 20, 2024, 4:36am UTC](https://discourse.cmake.org/t/build-the-library-with-modern-cmake/11735/1 "2024-09-20T04:36:27Z")

</div>

Is it a good method to build .dll or .lib for modern cmake?

> <https://github.com/Mizux/cmake-cpp/blob/main/Foo/CMakeLists.txt>
