2022-04-03 13:49:25 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
project(FreeKill VERSION 0.0.1)
|
|
|
|
|
2022-09-14 05:01:10 +00:00
|
|
|
include_directories(fkparse/src)
|
|
|
|
add_subdirectory(fkparse)
|
|
|
|
|
|
|
|
find_package(Qt6 REQUIRED COMPONENTS
|
2022-04-30 07:27:56 +00:00
|
|
|
Gui
|
|
|
|
Qml
|
|
|
|
Network
|
|
|
|
Multimedia
|
2022-01-24 02:23:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
find_package(Lua)
|
2022-03-24 13:23:42 +00:00
|
|
|
find_package(SQLite3)
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
2022-09-14 05:01:10 +00:00
|
|
|
set(REQUIRED_QT_VERSION "6.3")
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
include_directories(include/lua)
|
2022-03-24 13:23:42 +00:00
|
|
|
include_directories(include/sqlite3)
|
2022-01-24 02:23:08 +00: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 05:01:10 +00: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 02:23:08 +00:00
|
|
|
add_subdirectory(src)
|