knx/examples/knx-cc1310/cmake/FindXdctools.cmake
2020-10-13 18:15:23 +02:00

24 lines
630 B
CMake

##
## Author: Johannes Bruder
## License: See LICENSE.TXT file included in the project
##
##
## Find TI's xdctools
##
include(FindPackageHandleStandardArgs)
# Find the path to xdc headers
find_path(Xdctools_HEADER_DIR NAMES "std.h" PATH_SUFFIXES "packages/xdc")
message("Content of Xdctools_HEADER_DIR:" ${Xdctools_HEADER_DIR})
# Set according include path
set(Xdctools_INCLUDE_DIR "${Xdctools_HEADER_DIR}/../../packages")
message("Content of Xdctools_INCLUDE_DIR:" ${Xdctools_INCLUDE_DIR})
find_package_handle_standard_args(Xdctools DEFAULT_MSG
Xdctools_INCLUDE_DIR)
set(Xdctools_INCLUDE_DIRS ${Xdctools_INCLUDE_DIR})