2024-11-26 22:58:54 +08:00
|
|
|
find_package(Wt REQUIRED Dbo)
|
|
|
|
|
2024-01-03 22:44:36 +08:00
|
|
|
add_library(Database
|
|
|
|
Database.h Database.cpp
|
2024-11-26 22:58:54 +08:00
|
|
|
Session.h Session.cpp
|
|
|
|
Task.h
|
|
|
|
User.h
|
|
|
|
HomeBox.h
|
2024-01-03 22:44:36 +08:00
|
|
|
)
|
|
|
|
|
2024-11-26 22:58:54 +08:00
|
|
|
get_filename_component(PARENT_DIR ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
|
|
|
|
|
2024-01-03 22:44:36 +08:00
|
|
|
target_include_directories(Database
|
2024-11-26 22:58:54 +08:00
|
|
|
INTERFACE ${PARENT_DIR}
|
2024-01-03 22:44:36 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(Database
|
|
|
|
PUBLIC sqlite3
|
|
|
|
PUBLIC Universal
|
2024-11-26 22:58:54 +08:00
|
|
|
PUBLIC Wt::Wt
|
|
|
|
PUBLIC Wt::Dbo
|
|
|
|
PRIVATE Wt::DboSqlite3
|
2024-01-03 22:44:36 +08:00
|
|
|
)
|