-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only allow use of sqlite system package on Linux for now
Signed-off-by: Nicholas Frizzell <[email protected]>
- Loading branch information
1 parent
74a6bc1
commit bf5a68f
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
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,31 @@ | ||
# | ||
# Copyright (c) Contributors to the Open 3D Engine Project. | ||
# For complete copyright and license terms please see the LICENSE at the root of this distribution. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
# | ||
# | ||
|
||
# this file actually ingests the library and defines targets. | ||
set(TARGET_WITH_NAMESPACE "3rdParty::SQLite") | ||
if (TARGET ${TARGET_WITH_NAMESPACE}) | ||
return() | ||
endif() | ||
|
||
set(MY_NAME "SQLite") | ||
|
||
|
||
set(${MY_NAME}_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/SQLite) | ||
set(${MY_NAME}_LIBS_DIR ${CMAKE_CURRENT_LIST_DIR}/SQLite/lib) | ||
set(${MY_NAME}_LIBRARY ${${MY_NAME}_LIBS_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}sqlite3${CMAKE_STATIC_LIBRARY_SUFFIX}) | ||
|
||
add_library(${TARGET_WITH_NAMESPACE} STATIC IMPORTED GLOBAL) | ||
|
||
set_target_properties(${TARGET_WITH_NAMESPACE} PROPERTIES IMPORTED_LOCATION "${${MY_NAME}_LIBRARY}") | ||
|
||
ly_target_include_system_directories(TARGET ${TARGET_WITH_NAMESPACE} INTERFACE ${${MY_NAME}_INCLUDE_DIR}) | ||
|
||
target_link_libraries(${TARGET_WITH_NAMESPACE} | ||
INTERFACE ${CMAKE_DL_LIBS}) | ||
|
||
set(${MY_NAME}_FOUND True) |
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