40 lines
940 B
CMake
40 lines
940 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(sqliteserver)
|
|
|
|
set(SOURCES
|
|
"BrowseForFolder.cpp"
|
|
"StdAfx.cpp"
|
|
"TGAdoKernel.cpp"
|
|
"TSQLite.cpp"
|
|
"UIIADORXServer.cpp"
|
|
"UIIImpADORXServer.cpp"
|
|
"UIIImpSQLiteServer.cpp"
|
|
"UIIPackageDbOper.cpp"
|
|
"UIISQLiteServer.cpp"
|
|
"UIIValueRecord.cpp"
|
|
"UIIValueTable.cpp"
|
|
"UIIVariantUtility.cpp"
|
|
"base64.cpp"
|
|
"SQliteServer.def"
|
|
"sqliteserver.rc"
|
|
)
|
|
|
|
add_library(sqliteserver SHARED ${SOURCES})
|
|
|
|
# 设置编译选项
|
|
target_compile_definitions(sqliteserver PRIVATE
|
|
DLL_EXPORT
|
|
_AFXDLL
|
|
)
|
|
|
|
apply_arx_optimization(sqliteserver)
|
|
|
|
target_precompile_headers(sqliteserver PRIVATE StdAfx.h)
|
|
|
|
target_compile_options(sqliteserver PRIVATE "/MP1")
|
|
|
|
# 连接相应的库对象
|
|
target_link_libraries(sqliteserver PRIVATE ThirdParty::SQLite3)
|
|
target_link_libraries(sqliteserver PRIVATE ShsGlobalIncludes)
|
|
set_debug_post_build(sqliteserver "sqliteserver" ".dll") |