aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSkye Deving <76892045+skyedeving@users.noreply.github.com>2021-01-04 11:21:55 -0600
committerSkye Deving <76892045+skyedeving@users.noreply.github.com>2021-01-28 11:05:42 -0600
commitac9dfe32c080823c5f9d0be0efd31b2ad90ecfeb (patch)
treeaacad1b948e50f689b97d68198f59f609b4f611c /CMakeLists.txt
parent07450e9fe80913d280b80cb6eec11572c015ff1c (diff)
Enable build through CMakeLists
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt95
1 files changed, 94 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 322c90c5..97e09e4a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,7 @@
+# Configure cmake
cmake_minimum_required(VERSION 3.1.0)
-project(ao)
+project(AttorneyOnline)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -13,4 +14,96 @@ if(CMAKE_VERSION VERSION_LESS "3.7.0")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
endif()
+# AO
+add_executable(Attorney_Online
+# resources
+resources.qrc
+
+# src
+src/aoapplication.cpp
+src/aoblipplayer.cpp
+src/aobutton.cpp
+src/aocaseannouncerdialog.cpp
+src/aocharbutton.cpp
+src/aocharmovie.cpp
+src/aoemotebutton.cpp
+src/aoevidencebutton.cpp
+src/aoevidencedisplay.cpp
+src/aoimage.cpp
+src/aolineedit.cpp
+src/aomovie.cpp
+src/aomusicplayer.cpp
+src/aooptionsdialog.cpp
+src/aopacket.cpp
+src/aoscene.cpp
+src/aosfxplayer.cpp
+src/aotextarea.cpp
+src/aotextedit.cpp
+src/charselect.cpp
+src/chatlogpiece.cpp
+src/courtroom.cpp
+src/debug_functions.cpp
+src/discord_rich_presence.cpp
+src/emotes.cpp
+src/evidence.cpp
+src/file_functions.cpp
+src/hardware_functions.cpp
+src/lobby.cpp
+src/main.cpp
+src/misc_functions.cpp
+src/networkmanager.cpp
+src/packet_distribution.cpp
+src/path_functions.cpp
+src/scrolltext.cpp
+src/text_file_functions.cpp
+
+# include
+include/aoapplication.h
+include/aoblipplayer.h
+include/aobutton.h
+include/aocaseannouncerdialog.h
+include/aocharbutton.h
+include/aocharmovie.h
+include/aoemotebutton.h
+include/aoevidencebutton.h
+include/aoevidencedisplay.h
+include/aoimage.h
+include/aolineedit.h
+include/aomovie.h
+include/aomusicplayer.h
+include/aooptionsdialog.h
+include/aopacket.h
+include/aoscene.h
+include/aosfxplayer.h
+include/aotextarea.h
+include/aotextedit.h
+include/bass.h
+include/bassopus.h
+include/chatlogpiece.h
+include/courtroom.h
+include/datatypes.h
+include/debug_functions.h
+include/discord-rpc.h
+include/discord_register.h
+include/discord_rich_presence.h
+include/discord_rpc.h
+include/file_functions.h
+include/hardware_functions.h
+include/lobby.h
+include/misc_functions.h
+include/networkmanager.h
+include/scrolltext.h
+include/text_file_functions.h
+)
+
+# Target Include
+target_include_directories(Attorney_Online PRIVATE include)
+
+# Target Lib
+find_package(Qt5 COMPONENTS Core Gui Network Widgets REQUIRED)
+target_link_directories(Attorney_Online PRIVATE lib)
+target_link_libraries(Attorney_Online PRIVATE Qt5::Core Qt5::Gui Qt5::Network Qt5::Widgets
+ bass bassopus discord-rpc)
+
+# Tests
add_subdirectory(test)