summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-02-16 18:32:53 -0500
committerLouie S <louie@example.com>2024-02-16 18:32:53 -0500
commit7bbc2a93b6f123dfe8d2b97df8a4239032a6397b (patch)
tree73ebd2af83987c697ea81fd023465c0a53eafb6f /CMakeLists.txt
First commit
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..b07fb66
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,28 @@
+cmake_minimum_required(VERSION 3.1.0)
+
+project(assignment-list VERSION 0.0.1 LANGUAGES CXX)
+
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD_REQUIRED)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+if(CMAKE_VERSION VERSION_LESS "3.7.0")
+ set(CMAKE_INCLUDE_CURRENT_DIR ON)
+endif()
+
+find_package(Qt5 COMPONENTS Core Gui UiTools Widgets REQUIRED)
+
+add_executable(assignment-list
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/add_entry_form.ui"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/add_group_form.ui"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/assignmentList.cpp"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/assignmentList.h"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/main.ui"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/preferences_dialog.ui"
+)
+
+target_link_libraries(assignment-list Qt5::Core Qt5::Gui Qt5::UiTools Qt5::Widgets)