nilesh-das / chatappsfml Goto Github PK
View Code? Open in Web Editor NEWChat Application using socket programming in C++
License: MIT License
Chat Application using socket programming in C++
License: MIT License
Would you be kind enough to add CmakeLists.txt file to make it totally cross platform ? It would make it configuring and building easier for all desktop platforms.
Each directory (Client and Server) would need it's own CMake file. Here is one for Server. Tested, Works for all major Desktop OS.
#for server
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
project("app_server" VERSION 1.0)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(SFML_STATIC_LIBRARIES TRUE)
# ABSOLUTE PATH WHERE YOU INSTALLED PRECOMPILED SFML
# HIGHLY RECOMMENDED. You can modify as you wish.
# -----------------------------------------------------------------
# set(SFML_HOME "C:/SFML/SFML-2.6.1") # Windows
# set(SFML_HOME "/Library/Frameworks/SFML.framework/") #MacOS
# set(SFML_DIR ${SFML_HOME}/lib/cmake/SFML)
file(GLOB_RECURSE SOURCES "server.cpp" "servernetwork.cpp" "servernetwork.hpp")
find_package(SFML REQUIRED COMPONENTS "network" "system")
add_executable(app_server ${SOURCES})
target_link_libraries(app_server PRIVATE sfml-network sfml-system)
# include SFML headers
include_directories(${SFML_HOME}/include)
# show warnings (depending on C++ compiler)
if (MSVC)
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE /W4)
else()
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -Wall)
endif()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.