mirror of
https://github.com/RetroPie/EmulationStation.git
synced 2025-04-02 10:41:48 -04:00
17 lines
393 B
CMake
17 lines
393 B
CMake
project("sqlite3")
|
|
|
|
set(SQLITE3_HEADERS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sqlite3.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sqlite3ext.h
|
|
)
|
|
|
|
set(SQLITE3_SOURCES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/sqlite3.c
|
|
)
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
add_library(sqlite3 STATIC ${SQLITE3_SOURCES} ${SQLITE3_HEADERS})
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
target_link_libraries(sqlite3 dl)
|
|
endif()
|