增加了数据库及测试程序

This commit is contained in:
zjk
2025-02-10 16:37:22 +08:00
parent e072f2b9d4
commit 59faa14afb
12 changed files with 326 additions and 82 deletions
+13 -1
View File
@@ -15,12 +15,16 @@ else (${WIN32})
pthread )
endif (${WIN32})
# Find SQLite3 package
find_package(SQLite3 REQUIRED)
SET(SRC
PowerManger.cpp
PowerManger_Info.cpp
udpComm.cpp
fsm.cpp
main.cpp
SQLiteDB.cpp
)
ADD_EXECUTABLE(pPowerManger ${SRC})
@@ -32,5 +36,13 @@ TARGET_LINK_LIBRARIES(pPowerManger
m
pthread
jsoncpp
${SYSTEM_LIBS})
${SYSTEM_LIBS}
SQLiteDB
sqlite3)
# Add SQLiteDB static library
SET(SQLITEDB_SRC
SQLiteDB.cpp
)
ADD_LIBRARY(SQLiteDB STATIC ${SQLITEDB_SRC})