-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
659 changed files
with
90,292 additions
and
50,693 deletions.
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
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
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
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
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
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 |
---|---|---|
@@ -1,14 +1,29 @@ | ||
if (NOT TARGET ch_contrib::unixodbc) | ||
message(FATAL_ERROR "Configuration error: unixodbc is not a target") | ||
endif() | ||
|
||
set (LIBRARY_DIR "${CMAKE_SOURCE_DIR}/contrib/nanodbc") | ||
if (OS_DARWIN OR OS_LINIX) | ||
if (NOT TARGET ch_contrib::unixodbc) | ||
message(FATAL_ERROR "Configuration error: unixodbc is not a target") | ||
endif() | ||
|
||
set (LIBRARY_DIR "${CMAKE_SOURCE_DIR}/contrib/nanodbc") | ||
|
||
set (SRCS | ||
"${LIBRARY_DIR}/nanodbc/nanodbc.cpp" | ||
) | ||
|
||
set (SRCS | ||
"${LIBRARY_DIR}/nanodbc/nanodbc.cpp" | ||
) | ||
add_library(_nanodbc ${SRCS}) | ||
target_link_libraries(_nanodbc PUBLIC ch_contrib::unixodbc) | ||
target_include_directories(_nanodbc SYSTEM PUBLIC "${LIBRARY_DIR}/") | ||
add_library(ch_contr | ||
ib::nanodbc ALIAS _nanodbc) | ||
elseif (OS_WINDOWS) | ||
set (LIBRARY_DIR "${CMAKE_SOURCE_DIR}/contrib/nanodbc") | ||
set (SRCS | ||
"${LIBRARY_DIR}/nanodbc/nanodbc.cpp" | ||
) | ||
|
||
add_library(_nanodbc ${SRCS}) | ||
target_link_libraries(_nanodbc PUBLIC ch_contrib::unixodbc) | ||
target_include_directories(_nanodbc SYSTEM PUBLIC "${LIBRARY_DIR}/") | ||
add_library(ch_contrib::nanodbc ALIAS _nanodbc) | ||
add_library(_nanodbc ${SRCS}) | ||
target_link_libraries(_nanodbc PUBLIC ODBC::Driver) | ||
target_include_directories(_nanodbc SYSTEM PUBLIC "${LIBRARY_DIR}/") | ||
add_library(ch_contrib::nanodbc ALIAS _nanodbc) | ||
|
||
endif() |
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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
add_subdirectory (Crypto) | ||
add_subdirectory (Data) | ||
add_subdirectory (Data/ODBC) | ||
add_subdirectory (Foundation) | ||
add_subdirectory (JSON) | ||
add_subdirectory (MongoDB) | ||
add_subdirectory (Net) | ||
add_subdirectory (NetSSL_OpenSSL) | ||
add_subdirectory (Redis) | ||
if (OS_LINUX OR OS_DARWIN) | ||
add_subdirectory (Crypto) | ||
add_subdirectory (NetSSL_OpenSSL) | ||
elseif (OS_WINDOWS) | ||
if (MSVC) | ||
if (TARGET Foundation) | ||
set_property(TARGET Foundation APPEND PROPERTY INTERFACE_LINK_LIBRARIES Iphlpapi) | ||
elseif (TARGET Poco::Foundation) | ||
set_property(TARGET _poco_foundation APPEND PROPERTY INTERFACE_LINK_LIBRARIES Iphlpapi) | ||
endif () | ||
endif () | ||
add_subdirectory (NetSSL_Win) | ||
endif() | ||
add_subdirectory (Util) | ||
add_subdirectory (XML) |
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
Oops, something went wrong.