Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
toki
configs
Commits
0bd579a6
Commit
0bd579a6
authored
Jun 08, 2020
by
Oliver Horst
Browse files
[chg] Moved netif xilinx specific code to its own port config
parent
1f71cf34
Changes
8
Hide whitespace changes
Inline
Side-by-side
zcu102-zynqmp/freertos/baseline/master/lwip/CMakeLists.txt
View file @
0bd579a6
...
...
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
option
(
ENABLE_INSTALL
"Enable target installation possibility"
ON
)
option
(
WITH_HEADERS
"Enable build of separate header library"
ON
)
option
(
WITH_PORTS
"Enable building the lwIP config ports"
ON
)
project
(
lwip-config
...
...
@@ -39,12 +40,14 @@ target_link_libraries(
)
add_subdirectory
(
src-gen
)
if
(
WITH_HEADERS
)
add_subdirectory
(
include
)
endif
()
if
(
WITH_PORTS
)
add_subdirectory
(
ports
)
endif
()
if
(
ENABLE_INSTALL
)
# Configure and install the following files:
...
...
@@ -88,40 +91,4 @@ if (ENABLE_INSTALL)
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config-version.cmake
DESTINATION
${
ConfigPackageLocation
}
)
# If desired install all header files of the current project
if
(
WITH_HEADERS
)
get_target_property
(
PROJECT_INCLUDE_DIRECTORIES
${
PROJECT_NAME
}
INTERFACE_INCLUDE_DIRECTORIES
)
foreach
(
DIR
${
PROJECT_INCLUDE_DIRECTORIES
}
)
string
(
REGEX MATCH
"^.<BUILD_INTERFACE:(.*)>$"
EXTRACTED_DIR
${
DIR
}
)
if
(
CMAKE_MATCH_1
)
set
(
EXTRACTED_DIR
"
${
CMAKE_MATCH_1
}
"
)
file
(
GLOB_RECURSE
#
HEADER_FILES
#
FOLLOW_SYMLINKS
LIST_DIRECTORIES FALSE
RELATIVE
"
${
EXTRACTED_DIR
}
"
#
"
${
EXTRACTED_DIR
}
/*.h"
"
${
EXTRACTED_DIR
}
/*.hpp"
)
foreach
(
FILE
${
HEADER_FILES
}
)
get_filename_component
(
INSTALL_PATH
${
FILE
}
DIRECTORY
)
install
(
FILES
${
EXTRACTED_DIR
}
/
${
FILE
}
DESTINATION include/
${
INSTALL_PATH
}
)
endforeach
()
endif
()
endforeach
()
endif
()
endif
()
zcu102-zynqmp/freertos/baseline/master/lwip/ports/CMakeLists.txt
0 → 100644
View file @
0bd579a6
add_subdirectory
(
netif
)
\ No newline at end of file
zcu102-zynqmp/freertos/baseline/master/lwip/ports/netif/CMakeLists.txt
0 → 100644
View file @
0bd579a6
add_subdirectory
(
xilinx
)
\ No newline at end of file
zcu102-zynqmp/freertos/baseline/master/lwip/ports/netif/xilinx/CMakeLists.txt
0 → 100644
View file @
0bd579a6
cmake_minimum_required
(
VERSION 3.7 FATAL_ERROR
)
option
(
ENABLE_INSTALL
"Enable target installation possibility"
ON
)
option
(
WITH_HEADERS
"Enable build of separate header library"
ON
)
project
(
lwip-netif-xilinx-config
#
VERSION 0.1
LANGUAGES C ASM
)
add_library
(
lwip-netif-xilinx-config
#
INTERFACE
)
add_subdirectory
(
src-gen
)
if
(
ENABLE_INSTALL
)
# Configure and install the following files:
# - ${PROJECT_NAME}-config.cmake,
# - ${PROJECT_NAME}-config-version.cmake,
include
(
CMakePackageConfigHelpers
)
set
(
ConfigPackageLocation lib/cmake/
${
PROJECT_NAME
}
-
${
PROJECT_VERSION
}
)
# ${PROJECT_NAME}-config.cmake
configure_package_config_file
(
${
PROJECT_NAME
}
-config.cmake.in
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config.cmake
INSTALL_DESTINATION
${
ConfigPackageLocation
}
)
# ${PROJECT_NAME}-config-config-version.cmake
write_basic_package_version_file
(
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config-version.cmake
COMPATIBILITY SameMajorVersion
)
# Install exported CMake target files
install
(
TARGETS
${
PROJECT_NAME
}
EXPORT
${
PROJECT_NAME
}
-targets
ARCHIVE DESTINATION lib
)
install
(
EXPORT
${
PROJECT_NAME
}
-targets
DESTINATION
${
ConfigPackageLocation
}
EXPORT_LINK_INTERFACE_LIBRARIES
)
# Install package/module configuration files
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config-version.cmake
DESTINATION
${
ConfigPackageLocation
}
)
endif
()
zcu102-zynqmp/freertos/baseline/master/lwip/ports/netif/xilinx/lwip-netif-xilinx-config-config.cmake.in
0 → 100644
View file @
0bd579a6
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
# Import targets
include(${CMAKE_CURRENT_LIST_DIR}/lwip-netif-xilinx-config-targets.cmake)
check_required_components(lwip-netif-xilinx-config)
zcu102-zynqmp/freertos/baseline/master/lwip/src-gen/
netif/
CMakeLists.txt
→
zcu102-zynqmp/freertos/baseline/master/lwip/
ports/netif/xilinx/
src-gen/CMakeLists.txt
View file @
0bd579a6
cmake_minimum_required
(
VERSION 3.7 FATAL_ERROR
)
target_sources
(
lwip-config
lwip-
netif-xilinx-
config
#
INTERFACE
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_LIST_DIR
}
/xtopology_g.c>
...
...
zcu102-zynqmp/freertos/baseline/master/lwip/src-gen/
netif/
xtopology_g.c
→
zcu102-zynqmp/freertos/baseline/master/lwip/
ports/netif/xilinx/
src-gen/xtopology_g.c
View file @
0bd579a6
File moved
zcu102-zynqmp/freertos/baseline/master/lwip/src-gen/CMakeLists.txt
deleted
100644 → 0
View file @
1f71cf34
cmake_minimum_required
(
VERSION 3.7 FATAL_ERROR
)
add_subdirectory
(
netif
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment