1
0
cuberite-2a/lib/sqlite/CMakeLists.txt
2013-12-27 11:51:08 +01:00

26 lines
479 B
CMake

cmake_minimum_required (VERSION 2.6)
project (sqlite)
include_directories ("${PROJECT_SOURCE_DIR}/../")
file(GLOB SOURCE
"*.c"
)
# 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()
add_library(sqlite ${SOURCE})
if (UNIX)
target_link_libraries(sqlite dl)
endif()