mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-26 23:43:34 +00:00
15 lines
374 B
CMake
15 lines
374 B
CMake
|
set (SQLITE3_SOURCES
|
||
|
"CppSQLite3.cpp"
|
||
|
"sqlite3.c"
|
||
|
)
|
||
|
|
||
|
add_library (sqlite3 ${SQLITE3_SOURCES})
|
||
|
|
||
|
if(UNIX)
|
||
|
# Add warning disable flags and link Unix libraries to sqlite3
|
||
|
target_link_libraries(sqlite3 pthread dl m)
|
||
|
|
||
|
# -Wno-unused-result -Wno-unknown-pragmas -fpermissive
|
||
|
target_compile_options(sqlite3 PRIVATE "-Wno-return-local-addr" "-Wno-maybe-uninitialized")
|
||
|
endif()
|