2016-09-18 20:50:08 -07:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(sqlite3 C)
|
|
|
|
|
|
|
|
include_directories(${SOURCE})
|
|
|
|
add_library(sqlite3 SHARED ${SOURCE}/sqlite3.c)
|
2016-10-18 16:01:48 -04:00
|
|
|
target_compile_definitions(sqlite3 PRIVATE
|
|
|
|
$<$<CONFIG:Debug>:-DSQLITE_DEBUG> "-DSQLITE_API=__declspec(dllexport)"
|
|
|
|
-DSQLITE_ENABLE_RTREE
|
|
|
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY
|
|
|
|
)
|
2016-09-18 20:50:08 -07:00
|
|
|
if(TRIPLET_SYSTEM_NAME MATCHES "WindowsStore")
|
|
|
|
target_compile_definitions(sqlite3 PRIVATE -DSQLITE_OS_WINRT=1)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
install(TARGETS sqlite3
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
)
|
|
|
|
install(FILES ${SOURCE}/sqlite3.h ${SOURCE}/sqlite3ext.h DESTINATION include CONFIGURATIONS Release)
|