---
title: "Discussion on \"How to properly use uWebSocket in CMake\" | Hashnode"
description: "Discussion on \"How to properly use uWebSocket in CMake\". cmake_minimum_required(VERSION 3.28)\nproject(MyProject)\n\nset(CMAKE_CXX_STANDARD 20)\n\nadd_executable(MyProject main.cpp)\n\ninclude(FetchContent)\n\nFetchContent_Declare(\n    uws\n    GIT_REPOSITORY https://github.com/uNetworking/uWebSockets.git\n    GIT_TA..."
url: "https://hashnode.com/posts/how-to-properly-use-uwebsocket-in-cmake/678ec1a4f5e77405856a4656"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to properly use uWebSocket in CMake](https://blog.aniketray.me/how-to-properly-use-uwebsocket-in-cmake?utm_source=hashnode&utm_medium=feed)

cmake\_minimum\_required(VERSION 3.28) project(MyProject) set(CMAKE\_CXX\_STANDARD 20) add\_executable(MyProject main.cpp) include(FetchContent) FetchContent\_Declare( uws GIT\_REPOSITORY https://github.com/uNetworking/uWebSockets.git GIT\_TA...

Jan 20, 2025 · 1 min read · blog.aniketray.me  
Read the article

## Written by

[Aniket Ray](https://hashnode.com/@aniket-ray)

@aniket-ray · India

  
[View profile](https://hashnode.com/@aniket-ray)

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
