cmake (#20)
Initialisation of Qt resources must happen from main Updated CMake config for ICommand Builds with CMake, but resources doesn't work yet Initial CMake stuff. Also modified config.h.in template for CMake. Co-authored-by: Tomatix <iirc@trollskap.no> Reviewed-on: http://git.idealirc.org:3000/idealirc/idealirc/pulls/20pull/30/head
@ -0,0 +1,23 @@ |
||||
# From http://xit0.org/2013/04/cmake-use-git-branch-and-commit-details-in-project/ |
||||
|
||||
# |
||||
# Produces two self-explanatory variables; |
||||
# GIT_BRANCH |
||||
# GIT_COMMIT_HASH |
||||
# |
||||
|
||||
# Get the current working branch |
||||
execute_process( |
||||
COMMAND git rev-parse --abbrev-ref HEAD |
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} |
||||
OUTPUT_VARIABLE GIT_BRANCH |
||||
OUTPUT_STRIP_TRAILING_WHITESPACE |
||||
) |
||||
|
||||
# Get the latest abbreviated commit hash of the working branch |
||||
execute_process( |
||||
COMMAND git log -1 --format=%h |
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} |
||||
OUTPUT_VARIABLE GIT_COMMIT_HASH |
||||
OUTPUT_STRIP_TRAILING_WHITESPACE |
||||
) |
@ -0,0 +1,8 @@ |
||||
set(config_h_warning |
||||
"/* |
||||
* =-=-=-=-=-=-=-=-=-=-= WARNING =-=-=-=-=-=-=-=-=-=-= |
||||
* This file was created automatically by qmake. |
||||
* Do not edit it directly! Changes will most likely |
||||
* be lost, edit config.h.in instead. |
||||
* =-=-=-=-=-=-=-=-=-=-= WARNING =-=-=-=-=-=-=-=-=-=-= |
||||
*/") |
@ -0,0 +1,62 @@ |
||||
cmake_minimum_required(VERSION 3.10) |
||||
|
||||
project(IdealIRC) |
||||
|
||||
# |
||||
# Versioning |
||||
# |
||||
set(BUILD_TYPE "packaged") |
||||
set(VERSION_MAJOR 0) |
||||
set(VERSION_MINOR 0) |
||||
set(VERSION_PATCH 1) |
||||
set(VERSION_APPEND "") |
||||
|
||||
# |
||||
# CMake build environment setup |
||||
# |
||||
set(CMAKE_CXX_STANDARD 17) |
||||
|
||||
include(CMake/Git.cmake) |
||||
include(CMake/config_h_warning.cmake) |
||||
|
||||
set(IIRC_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) |
||||
|
||||
include_directories(${IIRC_SOURCE_DIR}) |
||||
include_directories(${IIRC_SOURCE_DIR}/IdealIRC) |
||||
include_directories(${CMAKE_BINARY_DIR}) |
||||
|
||||
# For GCC and Clang, basically. |
||||
if (UNIX) |
||||
# set(CMAKE_CXX_FLAGS "-Wall -Werror") |
||||
set(CMAKE_CXX_FLAGS "-pthread") |
||||
endif() |
||||
|
||||
# |
||||
# Qt setup |
||||
# |
||||
set(CMAKE_AUTOMOC ON) |
||||
set(CMAKE_AUTORCC ON) |
||||
set(CMAKE_AUTOUIC ON) |
||||
find_package(Qt5 REQUIRED COMPONENTS Core Widgets) |
||||
|
||||
# |
||||
# Project setup |
||||
# |
||||
configure_file(config.h.in ${CMAKE_BINARY_DIR}/config.h @ONLY) |
||||
|
||||
set(IIRC_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}") |
||||
|
||||
message("IdealIRC version ${IIRC_VERSION}") |
||||
message("Git branch: ${GIT_BRANCH}") |
||||
message("Git commit: ${GIT_COMMIT_HASH}") |
||||
|
||||
add_subdirectory(Resources) |
||||
add_subdirectory(ICommand) |
||||
add_subdirectory(IConfig) |
||||
add_subdirectory(IRCClient) |
||||
add_subdirectory(IWin) |
||||
add_subdirectory(Script) |
||||
add_subdirectory(ScriptDialog) |
||||
add_subdirectory(ScriptFunctions) |
||||
add_subdirectory(Widgets) |
||||
add_subdirectory(IdealIRC) # This one builds the binary. |
@ -0,0 +1,28 @@ |
||||
set(component "ICommand") |
||||
|
||||
list(APPEND ${component}_SOURCES |
||||
${CMAKE_CURRENT_SOURCE_DIR}/CommandData.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/CommandData.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Commands.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ICommand.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ICommand.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ICommandPriv.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ICommandPriv.h |
||||
) |
||||
|
||||
list(APPEND ${component}_SOURCES_Internal |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Internal/ctcp.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Internal/me.cpp |
||||
) |
||||
|
||||
|
||||
list(APPEND ${component}_SOURCES_External |
||||
${CMAKE_CURRENT_SOURCE_DIR}/External/kick.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/External/notice.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/External/privmsg.cpp |
||||
) |
||||
|
||||
|
||||
add_library(${component} STATIC ${${component}_SOURCES} ${${component}_SOURCES_Internal} ${${component}_SOURCES_External}) |
||||
qt5_use_modules(${component} Widgets) |
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |
@ -0,0 +1,30 @@ |
||||
set(component "IConfig") |
||||
|
||||
list(APPEND ${component}_SOURCES |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ColorConfig.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ColorConfig.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfig.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfig.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfig.ui |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfigLogging.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfigLogging.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfigLogging.ui |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfigOptions.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfigOptions.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfigOptions.ui |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfigServers.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfigServers.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IConfigServers.ui |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ServerEditor.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ServerEditor.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ServerEditor.ui |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ServerMgr.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ServerMgr.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ServerModel.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ServerModel.h |
||||
) |
||||
|
||||
add_library(${component} STATIC ${${component}_SOURCES}) |
||||
qt5_use_modules(${component} Widgets) |
||||
target_link_libraries(${component} Resources) |
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |
@ -0,0 +1,26 @@ |
||||
set(component "IRCClient") |
||||
|
||||
list(APPEND ${component}_SOURCES |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Commands.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/DCC.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/DCC.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCBase.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCBase.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCChannel.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCChannel.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCError.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCError.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCMember.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCMember.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCMemberEntry.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCMemberEntry.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCPrefix.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRCPrefix.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Numeric.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Utilities.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Utilities.h |
||||
) |
||||
|
||||
add_library(${component} STATIC ${${component}_SOURCES}) |
||||
target_link_libraries(${component} fmt crypto ssl) |
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |
@ -0,0 +1,19 @@ |
||||
set(component "IWin") |
||||
|
||||
list(APPEND ${component}_SOURCES |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IWin.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IWin.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IWinChannel.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IWinChannel.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IWinPrivate.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IWinPrivate.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IWinStatus.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IWinStatus.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/NicklistController.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/NicklistController.h |
||||
) |
||||
|
||||
add_library(${component} STATIC ${${component}_SOURCES}) |
||||
qt5_use_modules(${component} Widgets) |
||||
target_link_libraries(${component} IWidgets) |
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |
@ -1,203 +0,0 @@ |
||||
# IdealIRC - Internet Relay Chat client |
||||
# Copyright (C) 2019 Tom-Andre Barstad |
||||
# |
||||
# This program is free software; you can redistribute it and/or modify |
||||
# it under the terms of the GNU General Public License as published by |
||||
# the Free Software Foundation; either version 2 of the License, or |
||||
# (at your option) any later version. |
||||
# |
||||
# This program is distributed in the hope that it will be useful, |
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
# GNU General Public License for more details. |
||||
# |
||||
# You should have received a copy of the GNU General Public License along |
||||
# with this program; if not, write to the Free Software Foundation, Inc., |
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
||||
|
||||
QT += core gui widgets |
||||
|
||||
TARGET = IdealIRC |
||||
TEMPLATE = app |
||||
|
||||
VERSION_MAJOR = 1 |
||||
VERSION_MINOR = 0 |
||||
VERSION_PATCH = 0 |
||||
VERSION_BUILD = 001 |
||||
|
||||
# Two different "build types". |
||||
# standalone: |
||||
# Read config and skeleton from same folder as the executable. |
||||
# packaged: |
||||
# Used with installers, and reads config and skeleton from a more system-friendly path. |
||||
BUILD_TYPE = packaged |
||||
|
||||
QMAKE_SUBSTITUTES += config.h.in |
||||
DEFINES += QT_DEPRECATED_WARNINGS |
||||
CONFIG += c++17 |
||||
unix { QMAKE_CXXFLAGS += -std=c++17 } |
||||
win32 | win64 { QMAKE_CXXFLAGS += /std:c++17 } |
||||
|
||||
QMAKE_LFLAGS += -lm -lfmt -lcrypto -lssl |
||||
|
||||
SOURCES += \ |
||||
ICommand/ICommandPriv.cpp \ |
||||
IRC.cpp \ |
||||
Script/Builtin/Builtin.cpp \ |
||||
Script/Builtin/DialogUtils.cpp \ |
||||
Script/Builtin/Error.cpp \ |
||||
Script/Builtin/GeneralUtils.cpp \ |
||||
Script/Builtin/ListUtils.cpp \ |
||||
Script/Builtin/MapUtils.cpp \ |
||||
Script/Builtin/Mathematics.cpp \ |
||||
Script/Builtin/StringUtils.cpp \ |
||||
Script/Dialog.cpp \ |
||||
Script/ManagerListModel.cpp \ |
||||
Script/Menu.cpp \ |
||||
Script/ParserToken.cpp \ |
||||
Script/Script.cpp \ |
||||
Script/ScriptException.cpp \ |
||||
Script/SymbolScope.cpp \ |
||||
Script/Tokenizer.cpp \ |
||||
Script/Tokens.cpp \ |
||||
Script/ValueExtract.cpp \ |
||||
Script/ValueHolder.cpp \ |
||||
ScriptDialog/ScriptDialog.cpp \ |
||||
ScriptFunctions/RegisterScriptFunctions.cpp \ |
||||
ScriptFunctions/ScriptGeneralUtils.cpp \ |
||||
ScriptFunctions/ScriptIRCUtils.cpp \ |
||||
main.cpp \ |
||||
IdealIRC.cpp \ |
||||
# IMember.cpp \ |
||||
# IConnection/IConnection.cpp \ |
||||
IWin/IWin.cpp \ |
||||
# IChannel.cpp \ |
||||
# IServer.cpp \ |
||||
MdiManager.cpp \ |
||||
IWin/IWinStatus.cpp \ |
||||
Widgets/IIRCView.cpp \ |
||||
# IRCReader.cpp \ |
||||
# IRCPrefix.cpp \ |
||||
InputHandler.cpp \ |
||||
ICommand/ICommand.cpp \ |
||||
ICommand/External/kick.cpp \ |
||||
ICommand/External/notice.cpp \ |
||||
ICommand/External/privmsg.cpp \ |
||||
ICommand/Internal/ctcp.cpp \ |
||||
ICommand/Internal/me.cpp \ |
||||
IWin/IWinChannel.cpp \ |
||||
IWin/IWinPrivate.cpp \ |
||||
IWin/NicklistController.cpp \ |
||||
IConfig/IConfig.cpp \ |
||||
IConfig/IConfigServers.cpp \ |
||||
IConfig/IConfigOptions.cpp \ |
||||
IConfig/IConfigLogging.cpp \ |
||||
AboutIIRC.cpp \ |
||||
IniFile.cpp \ |
||||
IConfig/ColorConfig.cpp \ |
||||
ConfigMgr.cpp \ |
||||
Widgets/ILineEdit.cpp \ |
||||
Widgets/IListWidget.cpp \ |
||||
IConfig/ServerEditor.cpp \ |
||||
IConfig/ServerMgr.cpp \ |
||||
IConfig/ServerModel.cpp \ |
||||
ButtonbarMgr.cpp \ |
||||
ICommand/CommandData.cpp \ |
||||
Script/Manager.cpp \ |
||||
IRCClient/DCC.cpp \ |
||||
IRCClient/IRCBase.cpp \ |
||||
IRCClient/IRCChannel.cpp \ |
||||
IRCClient/IRCError.cpp \ |
||||
IRCClient/IRCMember.cpp \ |
||||
IRCClient/IRCMemberEntry.cpp \ |
||||
IRCClient/IRCPrefix.cpp \ |
||||
IRCClient/Utilities.cpp \ |
||||
|
||||
HEADERS += \ |
||||
ICommand/ICommandPriv.h \ |
||||
IRC.h \ |
||||
IdealIRC.h \ |
||||
# IMember.h \ |
||||
# IConnection/IConnection.h \ |
||||
IWin/IWin.h \ |
||||
# IChannel.h \ |
||||
# IServer.h \ |
||||
MdiManager.h \ |
||||
IWin/IWinStatus.h \ |
||||
Script/Builtin/Builtin.h \ |
||||
Script/Builtin/DialogUtils.h \ |
||||
Script/Builtin/Error.h \ |
||||
Script/Builtin/GeneralUtils.h \ |
||||
Script/Builtin/ListUtils.h \ |
||||
Script/Builtin/MapUtils.h \ |
||||
Script/Builtin/Mathematics.h \ |
||||
Script/Builtin/StringUtils.h \ |
||||
Script/Dialog.h \ |
||||
Script/ManagerListModel.h \ |
||||
Script/Menu.h \ |
||||
Script/ParserOperator.h \ |
||||
Script/ParserToken.h \ |
||||
Script/Script.h \ |
||||
Script/ScriptException.h \ |
||||
Script/SymbolScope.h \ |
||||
Script/Tokenizer.h \ |
||||
Script/Tokens.h \ |
||||
Script/ValueExtract.h \ |
||||
Script/ValueHolder.h \ |
||||
ScriptDialog/ScriptDialog.h \ |
||||
ScriptEvent.h \ |
||||
ScriptFunctions/RegisterScriptFunctions.h \ |
||||
ScriptFunctions/ScriptGeneralUtils.h \ |
||||
ScriptFunctions/ScriptIRCUtils.h \ |
||||
Widgets/IIRCView.h \ |
||||
# IRCReader.h \ |
||||
# IRCPrefix.h \ |
||||
# Numeric.h \ |
||||
ICommand/Commands.h \ |
||||
InputHandler.h \ |
||||
ICommand/ICommand.h \ |
||||
IWin/IWinChannel.h \ |
||||
IWin/IWinPrivate.h \ |
||||
IWin/NicklistController.h \ |
||||
IConfig/IConfig.h \ |
||||
IConfig/IConfigServers.h \ |
||||
IConfig/IConfigOptions.h \ |
||||
IConfig/IConfigLogging.h \ |
||||
AboutIIRC.h \ |
||||
IniFile.h \ |
||||
IConfig/ColorConfig.h \ |
||||
ConfigMgr.h \ |
||||
Widgets/ILineEdit.h \ |
||||
Widgets/IListWidget.h \ |
||||
IConfig/ServerEditor.h \ |
||||
IConfig/ServerMgr.h \ |
||||
IConfig/ServerModel.h \ |
||||
ButtonbarMgr.h \ |
||||
ICommand/CommandData.h \ |
||||
Script/Manager.h \ |
||||
IRCClient/Commands.h \ |
||||
IRCClient/DCC.h \ |
||||
IRCClient/IRCBase.h \ |
||||
IRCClient/IRCChannel.h \ |
||||
IRCClient/IRCError.h \ |
||||
IRCClient/IRCMember.h \ |
||||
IRCClient/IRCMemberEntry.h \ |
||||
IRCClient/IRCPrefix.h \ |
||||
IRCClient/Numeric.h \ |
||||
IRCClient/Utilities.h |
||||
|
||||
FORMS += \ |
||||
IdealIRC.ui \ |
||||
IConfig/IConfig.ui \ |
||||
IConfig/IConfigServers.ui \ |
||||
IConfig/IConfigOptions.ui \ |
||||
IConfig/IConfigLogging.ui \ |
||||
AboutIIRC.ui \ |
||||
IConfig/ServerEditor.ui \ |
||||
Script/Manager.ui |
||||
|
||||
RESOURCES += \ |
||||
resources.qrc |
||||
|
||||
DISTFILES += \ |
||||
events.txt |
@ -0,0 +1,42 @@ |
||||
set(component "IdealIRC") |
||||
|
||||
list(APPEND ${component}_SOURCES |
||||
${CMAKE_CURRENT_SOURCE_DIR}/AboutIIRC.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/AboutIIRC.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/AboutIIRC.ui |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ButtonbarMgr.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ButtonbarMgr.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ConfigMgr.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ConfigMgr.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRC.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IRC.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IdealIRC.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IdealIRC.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IdealIRC.ui |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IniFile.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IniFile.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/InputHandler.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/InputHandler.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/MdiManager.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/MdiManager.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Numeric.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ScriptEvent.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp |
||||
) |
||||
|
||||
add_executable(${component} ${${component}_SOURCES}) |
||||
qt5_use_modules(${component} Widgets) |
||||
|
||||
target_link_libraries(${component} |
||||
ICommand |
||||
IConfig |
||||
IRCClient |
||||
IWidgets |
||||
IWin |
||||
Script |
||||
ScriptDialog |
||||
ScriptFunctions |
||||
Resources |
||||
) |
||||
|
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |
@ -0,0 +1,7 @@ |
||||
set(component "Resources") |
||||
|
||||
qt5_add_resources(${component}_SOURCES ${IIRC_SOURCE_DIR}/Resources/resources.qrc) |
||||
|
||||
add_library(${component} STATIC ${${component}_SOURCES}) |
||||
qt5_use_modules(${component} Core) |
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@ -0,0 +1,25 @@ |
||||
set(component "ScriptBuiltinFunctions") |
||||
|
||||
list(APPEND ${component}_SOURCES |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Builtin.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Builtin.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/DialogUtils.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/DialogUtils.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Error.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Error.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/GeneralUtils.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/GeneralUtils.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ListUtils.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ListUtils.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/MapUtils.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/MapUtils.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Mathematics.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Mathematics.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/StringUtils.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/StringUtils.h |
||||
) |
||||
|
||||
add_library(${component} STATIC ${${component}_SOURCES}) |
||||
qt5_use_modules(${component} Core) |
||||
target_link_libraries(${component} m) |
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |
@ -0,0 +1,37 @@ |
||||
set(component "Script") |
||||
|
||||
add_subdirectory(Builtin) |
||||
|
||||
list(APPEND ${component}_SOURCES |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Dialog.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Dialog.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Manager.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Manager.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Manager.ui |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ManagerListModel.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ManagerListModel.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Menu.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Menu.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ParserOperator.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ParserToken.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ParserToken.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Script.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Script.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ScriptException.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ScriptException.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/SymbolScope.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/SymbolScope.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tokenizer.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tokenizer.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tokens.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tokens.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ValueExtract.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ValueExtract.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ValueHolder.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ValueHolder.h |
||||
) |
||||
|
||||
add_library(${component} STATIC ${${component}_SOURCES}) |
||||
qt5_use_modules(${component} Widgets) |
||||
target_link_libraries(${component} ScriptBuiltinFunctions Resources) |
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |
@ -0,0 +1,10 @@ |
||||
set(component "ScriptDialog") |
||||
|
||||
list(APPEND ${component}_SOURCES |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ScriptDialog.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ScriptDialog.h |
||||
) |
||||
|
||||
add_library(${component} STATIC ${${component}_SOURCES}) |
||||
qt5_use_modules(${component} Widgets) |
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |
@ -0,0 +1,14 @@ |
||||
set(component "ScriptFunctions") |
||||
|
||||
list(APPEND ${component}_SOURCES |
||||
${CMAKE_CURRENT_SOURCE_DIR}/RegisterScriptFunctions.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/RegisterScriptFunctions.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ScriptGeneralUtils.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ScriptGeneralUtils.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ScriptIRCUtils.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ScriptIRCUtils.h |
||||
) |
||||
|
||||
add_library(${component} STATIC ${${component}_SOURCES}) |
||||
qt5_use_modules(${component} Widgets) |
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |
@ -0,0 +1,14 @@ |
||||
set(component "IWidgets") |
||||
|
||||
list(APPEND ${component}_SOURCES |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IIRCView.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IIRCView.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ILineEdit.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/ILineEdit.h |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IListWidget.cpp |
||||
${CMAKE_CURRENT_SOURCE_DIR}/IListWidget.h |
||||
) |
||||
|
||||
add_library(${component} STATIC ${${component}_SOURCES}) |
||||
qt5_use_modules(${component} Widgets) |
||||
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR}) |