Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
948dfeea
Commit
948dfeea
authored
6 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
cmake updates
parent
bc703a5e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+2
-1
2 additions, 1 deletion
CMakeLists.txt
cmake_support/FindSQLite3.cmake
+8
-15
8 additions, 15 deletions
cmake_support/FindSQLite3.cmake
with
10 additions
and
16 deletions
CMakeLists.txt
+
2
−
1
View file @
948dfeea
...
...
@@ -234,7 +234,7 @@ endif()
find_package
(
Eigen 3.2.0 REQUIRED
)
find_package
(
Python 2.4 REQUIRED
)
find_package
(
SQLite3 REQUIRED
)
find_package
(
SQLite3
3.7.13
REQUIRED
)
if
(
USE_NUMPY
)
find_package
(
Numpy REQUIRED
)
...
...
@@ -304,6 +304,7 @@ include_directories(${Boost_INCLUDE_DIRS}
${
TIFF_INCLUDE_DIR
}
${
PNG_INCLUDE_DIRS
}
${
OPEN_MM_INCLUDE_DIRS
}
${
SQLITE3_INCLUDE_DIRS
}
)
if
(
USE_NUMPY
)
include_directories
(
${
PYTHON_NUMPY_INCLUDE_DIR
}
)
...
...
This diff is collapsed.
Click to expand it.
cmake_support/FindSQLite3.cmake
+
8
−
15
View file @
948dfeea
# Try to find SQLite3
#
# Once done this will define
# - Find SQLite3
# Find the native SQLite3 includes and library
#
# SQLITE3_INCLUDE_DIRS - SQLite3 include dir
s
.
# SQLITE3_LIBRARIES - List of libraries when using SQLite3.
# SQLITE3_FOUND - True if SQLite3 found.
# SQLITE3_INCLUDE_DIRS
- SQLite3 include dir.
# SQLITE3_LIBRARIES
- List of libraries when using SQLite3.
# SQLITE3_FOUND
- True if SQLite3 found.
find_path
(
SQLITE3_INCLUDE_DIR
NAMES
sqlite3.h
)
find_path
(
SQLITE3_INCLUDE_DIR sqlite3.h
)
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
)
IF
(
SQLITE3_FOUND
)
SET
(
SQLITE3_INCLUDE_DIRS
${
SQLITE3_INCLUDE_DIR
}
)
SET
(
SQLITE3_LIBRARIES
${
SQLITE3_LIBRARY
}
)
ELSE
(
SQLITE3_FOUND
)
SET
(
SQLITE3_INCLUDE_DIRS
)
SET
(
SQLITE3_LIBRARIES
)
ENDIF
(
SQLITE3_FOUND
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
SQLITE3 DEFAULT_MSG SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR
)
mark_as_advanced
(
SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR
)
SET
(
SQLITE3_INCLUDE_DIRS
${
SQLITE3_INCLUDE_DIR
}
)
SET
(
SQLITE3_LIBRARIES
${
SQLITE3_LIBRARY
}
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment