Skip to content
Permalink
Browse files

Adds Sqlite3

  • Loading branch information
remram44 committed Feb 5, 2015
1 parent 85a764d commit 89ea53c9adae654bcf4ae75d5f8c3c4681af5476
Showing with 24 additions and 0 deletions.
  1. +20 −0 CMake/FindSqlite3.cmake
  2. +4 −0 CMakeLists.txt
@@ -0,0 +1,20 @@
# Look for the header file.
FIND_PATH(SQLITE3_INCLUDE_DIR NAMES sqlite3.h)

# Look for the library.
FIND_LIBRARY(SQLITE3_LIBRARY NAMES sqlite3)

# Handle the QUIETLY and REQUIRED arguments and set Sqlite3_FOUND to TRUE if all listed variables are TRUE.
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sqlite3 DEFAULT_MSG SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR)

# Copy the results to the output variables.
IF(SQLITE3_FOUND)
SET(SQLITE3_LIBRARIES ${SQLITE3_LIBRARY})
SET(SQLITE3_INCLUDE_DIRS ${SQLITE3_INCLUDE_DIR})
ELSE(Sqlite3_FOUND)
SET(SQLITE3_LIBRARIES)
SET(SQLITE3_INCLUDE_DIRS)
ENDIF(SQLITE3_FOUND)

MARK_AS_ADVANCED(SQLITE3_INCLUDE_DIR SQLITE3_LIBRARY)
@@ -11,6 +11,10 @@ FIND_PACKAGE(FCGIPP REQUIRED)
INCLUDE_DIRECTORIES(${FCGIPP_INCLUDE_DIRS})
SET(EXTRA_LIBRARIES ${FCGIPP_LIBRARIES} ${EXTRA_LIBRARIES})

FIND_PACKAGE(Sqlite3 REQUIRED)
INCLUDE_DIRECTORIES(${SQLITE3_INCLUDE_DIRS})
SET(EXTRA_LIBRARIES ${SQLITE3_LIBRARIES} ${EXTRA_LIBRARIES})

# Build source list
SET(INSURLT_FILES permgen.cpp insults.cpp)

0 comments on commit 89ea53c

Please sign in to comment.
You can’t perform that action at this time.