Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from fastogt/master
CMakeLists.txt
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters