mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-25 15:03:34 +00:00
20 lines
517 B
CMake
20 lines
517 B
CMake
set(DDATABASE_SOURCES "CDClientDatabase.cpp"
|
|
"CDClientManager.cpp"
|
|
"Database.cpp"
|
|
"MigrationRunner.cpp")
|
|
|
|
add_subdirectory(Tables)
|
|
|
|
foreach(file ${DDATABASE_TABLES_SOURCES})
|
|
set(DDATABASE_SOURCES ${DDATABASE_SOURCES} "Tables/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(Databases)
|
|
|
|
foreach (file ${DDATABASE_DATABASES_SOURCES})
|
|
set(DDATABASE_SOURCES ${DDATABASE_SOURCES} "Databases/${file}")
|
|
endforeach()
|
|
|
|
add_library(dDatabase STATIC ${DDATABASE_SOURCES})
|
|
target_link_libraries(dDatabase sqlite3 mariadbConnCpp)
|