-
Notifications
You must be signed in to change notification settings - Fork 1
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
7 changed files
with
37 additions
and
25 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
Binary file not shown.
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,4 +1,4 @@ | ||
% This file is automatically generated by the build system. | ||
% Do not edit it manually. | ||
|
||
\newcommand{\productversion}{1.0.3} | ||
\newcommand{\productversion}{1.0.4} |
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,25 +1,27 @@ | ||
cmake_minimum_required(VERSION 3.3.0) | ||
|
||
add_library(ipsockets src/ipsocket.cpp) | ||
add_library(ipsockets INTERFACE) | ||
|
||
target_include_directories(ipsockets PUBLIC | ||
target_sources(ipsockets INTERFACE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/ipsocket.cpp> | ||
$<INSTALL_INTERFACE:${LIB_INSTALL_DIR}/sdk/ipsockets/ipsocket.cpp>) | ||
|
||
target_include_directories(ipsockets INTERFACE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}/sdk/ipsockets>) | ||
|
||
if(WIN32) | ||
target_link_libraries(ipsockets ws2_32 iphlpapi) | ||
target_link_libraries(ipsockets INTERFACE ws2_32 iphlpapi) | ||
endif() | ||
|
||
set_target_properties(ipsockets PROPERTIES POSITION_INDEPENDENT_CODE TRUE) | ||
|
||
########################### | ||
# INSTALL | ||
########################### | ||
|
||
install(TARGETS ipsockets | ||
EXPORT sdm | ||
LIBRARY DESTINATION "${LIB_INSTALL_DIR}/sdk" | ||
ARCHIVE DESTINATION "${LIB_INSTALL_DIR}/sdk") | ||
install(TARGETS ipsockets EXPORT sdm) | ||
|
||
install(DIRECTORY include/ | ||
DESTINATION "${INCLUDE_INSTALL_DIR}/sdk/ipsockets") | ||
|
||
install(DIRECTORY src/ | ||
DESTINATION "${LIB_INSTALL_DIR}/sdk/ipsockets") |
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,31 +1,33 @@ | ||
cmake_minimum_required(VERSION 3.3.0) | ||
|
||
set(UART_SRC src/uart.cpp) | ||
add_library(uart INTERFACE) | ||
|
||
target_sources(uart INTERFACE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/uart.cpp> | ||
$<INSTALL_INTERFACE:${LIB_INSTALL_DIR}/sdk/uart/uart.cpp>) | ||
|
||
if(WIN32) | ||
list(APPEND UART_SRC src/win32/uartimpl.cpp) | ||
target_sources(uart INTERFACE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/win32/uartimpl.cpp> | ||
$<INSTALL_INTERFACE:${LIB_INSTALL_DIR}/sdk/uart/win32/uartimpl.cpp>) | ||
else() | ||
list(APPEND UART_SRC src/posix/uartimpl.cpp) | ||
target_sources(uart INTERFACE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/posix/uartimpl.cpp> | ||
$<INSTALL_INTERFACE:${LIB_INSTALL_DIR}/sdk/uart/posix/uartimpl.cpp>) | ||
endif() | ||
|
||
add_library(uart ${UART_SRC}) | ||
|
||
target_include_directories(uart PUBLIC | ||
target_include_directories(uart INTERFACE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}/sdk/uart>) | ||
|
||
target_include_directories(uart PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src) | ||
|
||
set_target_properties(uart PROPERTIES POSITION_INDEPENDENT_CODE TRUE) | ||
|
||
########################### | ||
# INSTALL | ||
########################### | ||
|
||
install(TARGETS uart | ||
EXPORT sdm | ||
LIBRARY DESTINATION "${LIB_INSTALL_DIR}/sdk" | ||
ARCHIVE DESTINATION "${LIB_INSTALL_DIR}/sdk") | ||
install(TARGETS uart EXPORT sdm) | ||
|
||
install(DIRECTORY include/ | ||
DESTINATION "${INCLUDE_INSTALL_DIR}/sdk/uart") | ||
|
||
install(DIRECTORY src/ | ||
DESTINATION "${LIB_INSTALL_DIR}/sdk/uart") |
File renamed without changes.