2013-12-18 19:28:48 -05:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (sqlite)
|
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
|
|
|
|
file(GLOB SOURCE
|
|
|
|
"*.c"
|
|
|
|
)
|
|
|
|
|
2013-12-27 05:51:08 -05:00
|
|
|
|
|
|
|
# add headers to MSVC project files:
|
|
|
|
if (WIN32)
|
|
|
|
file(GLOB HEADERS "src/*.h")
|
|
|
|
list(REMOVE_ITEM SOURCE "${PROJECT_SOURCE_DIR}/src/lua.h" "${PROJECT_SOURCE_DIR}/src/luac.h")
|
|
|
|
set(SOURCE ${SOURCE} ${HEADERS})
|
|
|
|
source_group("Sources" FILES ${SOURCE})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2013-12-18 19:28:48 -05:00
|
|
|
add_library(sqlite ${SOURCE})
|
|
|
|
|
2013-12-27 05:51:08 -05:00
|
|
|
if (UNIX)
|
2014-01-07 08:08:58 -05:00
|
|
|
target_link_libraries(sqlite ${DYNAMIC_LOADER})
|
2013-12-27 05:51:08 -05:00
|
|
|
endif()
|