Hi,

i wanted to compile the sqlite3 library on windows. For that reason
I made a short CMakeLists.txt file which allows to compile sqlite3
with MINGW/MSYS and MSVC. Please find attached the file
contents. Maybe that kind of file could be included in the source?

Regards

Friedrich
==============================================
CMakeFiles.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 )

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to