Skip to content

Instantly share code, notes, and snippets.

@sixman9
Created January 27, 2011 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sixman9/798680 to your computer and use it in GitHub Desktop.
Save sixman9/798680 to your computer and use it in GitHub Desktop.
SQLite Cmake script for win32 - starting point for iPhone version?
#cmakelists.txt
cmake_minimum_required ( VERSION 2.6 FATAL_ERROR )
project ( sqlite3 C )
SET( CMAKE_INSTALL_PREFIX "f:/doof" )
set ( SOURCES sqlite3.c )
set ( HEADERS sqlite3.h )
if ( WIN32 )
if ( MSVC )
# set ( CMAKE_SHARED_LINKER_FLAGS /DEF:sqlite3.def )
# set ( SQLITE3_DEF_FILE "${CMAKE_CURRENT_BINARY_DIR}/sqlite3.def" )
add_definitions( "-DSQLITE_API=__declspec(dllexport)" )
endif ( MSVC )
endif ( WIN32 )
add_library ( sqlite3 SHARED
${SOURCES}
${HEADERS}
)
INSTALL ( TARGETS sqlite3
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
INSTALL ( FILES sqlite3.h DESTINATION include )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment