Skip to content

Commit

Permalink
Merge pull request #48 from fastogt/master
Browse files Browse the repository at this point in the history
CMakeLists.txt
  • Loading branch information
symisc committed Aug 22, 2017
2 parents 26d4258 + 49d45fa commit ca65e2b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,24 @@
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
PROJECT(unqlite)

# If the user did not customize the install prefix,
# set it to live under build so we don't inadvertently pollute /usr/local
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
SET(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "default install path" FORCE)
ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/src)

SET(HEADERS_UNQLITE
unqlite.h
)

SET(SOURCES_UNQLITE
unqlite.c
)

SET(UNQLITE_STATIC_LIB unqlite)
ADD_LIBRARY(${UNQLITE_STATIC_LIB} STATIC ${HEADERS_UNQLITE} ${SOURCES_UNQLITE})

INSTALL(TARGETS ${UNQLITE_STATIC_LIB} COMPONENT devel ARCHIVE DESTINATION lib)
INSTALL(FILES ${HEADERS_UNQLITE} COMPONENT devel DESTINATION include)
2 changes: 1 addition & 1 deletion unqlite.h
Expand Up @@ -658,7 +658,7 @@ struct unqlite_page
{
unsigned char *zData; /* Content of this page */
void *pUserData; /* Extra content */
pgno pgno; /* Page number for this page */
sxu64 pgno; /* Page number for this page */
};
/*
* UnQLite handle to the underlying Key/Value Storage Engine (See below).
Expand Down

0 comments on commit ca65e2b

Please sign in to comment.