Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cos3711 03 01 #55

Merged
merged 3 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
12 changes: 6 additions & 6 deletions COS3711-03-01/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets Xml)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Xml)

set(PROJECT_SOURCES
resources.qrc
set(LIBRARY_SOURCES
mainwindow.h mainwindow.cpp
author.h author.cpp
book.h book.cpp
bookinput.h bookinput.cpp
booktablemodel.h booktablemodel.cpp
bookproxymodel.h bookproxymodel.cpp
bookfactory.h bookfactory.cpp
filewriter.h filewriter.cpp
bookwriter.h bookwriter.cpp
)

# Create library
add_library(MyProjectLib ${PROJECT_SOURCES}
bookfactory.h bookfactory.cpp
filewriter.h filewriter.cpp
bookwriter.h bookwriter.cpp)
add_library(MyProjectLib ${LIBRARY_SOURCES})

# Include directories for the library
target_include_directories(MyProjectLib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
Expand All @@ -39,6 +38,7 @@ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(COS3711-03-01
MANUAL_FINALIZATION
main.cpp
resources.qrc
)
else()
if(ANDROID)
Expand Down
Loading