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)
|
|
|
|
|
2022-09-14 13:01:10 +08:00
|
|
|
include_directories(fkparse/src)
|
|
|
|
add_subdirectory(fkparse)
|
|
|
|
|
|
|
|
find_package(Qt6 REQUIRED COMPONENTS
|
2022-04-30 15:27:56 +08:00
|
|
|
Gui
|
|
|
|
Qml
|
2022-12-18 12:52:52 +08:00
|
|
|
Widgets
|
2022-04-30 15:27:56 +08:00
|
|
|
Network
|
|
|
|
Multimedia
|
2022-01-24 10:23:08 +08:00
|
|
|
)
|
|
|
|
|
2022-12-18 12:52:52 +08:00
|
|
|
find_package(OpenSSL)
|
2022-01-24 10:23:08 +08:00
|
|
|
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)
|
2022-09-14 13:01:10 +08:00
|
|
|
set(REQUIRED_QT_VERSION "6.3")
|
2022-01-24 10:23:08 +08:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2022-09-14 13:01:10 +08:00
|
|
|
file(GLOB SWIG_FILES "${PROJECT_SOURCE_DIR}/src/swig/*.i")
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${PROJECT_SOURCE_DIR}/src/swig/freekill-wrap.cxx
|
|
|
|
DEPENDS ${SWIG_FILES}
|
|
|
|
COMMENT "Generating freekill-wrap.cxx"
|
|
|
|
COMMAND swig -c++ -lua -Wall -o
|
|
|
|
${PROJECT_SOURCE_DIR}/src/swig/freekill-wrap.cxx
|
|
|
|
${PROJECT_SOURCE_DIR}/src/swig/freekill.i
|
|
|
|
)
|
|
|
|
|
|
|
|
qt_add_executable(FreeKill)
|
2022-01-24 10:23:08 +08:00
|
|
|
add_subdirectory(src)
|