2022-04-03 21:49:25 +08:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2022-01-24 10:23:08 +08:00
|
|
|
|
|
|
|
project(FreeKill VERSION 0.0.1)
|
|
|
|
|
|
|
|
find_package(Qt5 REQUIRED COMPONENTS
|
|
|
|
Gui
|
|
|
|
Qml
|
|
|
|
Network
|
|
|
|
Multimedia
|
|
|
|
)
|
|
|
|
|
|
|
|
find_package(Lua)
|
2022-03-24 21:23:42 +08:00
|
|
|
find_package(SQLite3)
|
2022-01-24 10:23:08 +08:00
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
|
|
set(REQUIRED_QT_VERSION "5.15.2")
|
|
|
|
|
|
|
|
include_directories(include/lua)
|
2022-03-24 21:23:42 +08:00
|
|
|
include_directories(include/sqlite3)
|
2022-01-24 10:23:08 +08:00
|
|
|
include_directories(src)
|
|
|
|
include_directories(src/client)
|
|
|
|
include_directories(src/core)
|
|
|
|
include_directories(src/network)
|
|
|
|
include_directories(src/server)
|
|
|
|
include_directories(src/ui)
|
|
|
|
|
|
|
|
add_subdirectory(src)
|