CMake instead of qmake
This commit is contained in:
1
.gitignore
vendored
Executable file → Normal file
1
.gitignore
vendored
Executable file → Normal file
@@ -10,3 +10,4 @@
|
|||||||
/yourchat
|
/yourchat
|
||||||
*.o
|
*.o
|
||||||
*.qmake.stash
|
*.qmake.stash
|
||||||
|
/build/
|
||||||
|
|||||||
9
CMakeLists.txt
Normal file
9
CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
|
||||||
|
project(YourChat VERSION 0.1)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||||
|
include_directories(${PROJECT_SOURCE_DIR})
|
||||||
|
add_executable(yourchat main.cpp base.cpp config.cpp server.cpp room.cpp tools.cpp user.cpp)
|
||||||
|
target_link_libraries(yourchat jsoncpp pthread)
|
||||||
Reference in New Issue
Block a user