Skip to content

Commit

Permalink
Merge pull request #4 from openbfdev/feat-bfdev
Browse files Browse the repository at this point in the history
feat bfdev: use built-in header reference path
  • Loading branch information
sanpeqf authored Apr 7, 2024
2 parents ecfb8c7 + bcf849a commit 9f25e6c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions cmake/bfdev.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
set(BFDEV_SOURCE_PATH ${PROJECT_SOURCE_DIR}/src)
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Copyright(c) 2024 John Sanpe <[email protected]>
#

# FIXME: support use system lib and user specific lib
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
add_subdirectory(lib/bfdev)
include_directories(${PROJECT_SOURCE_DIR}/lib/bfdev/include)
include_directories(${PROJECT_BINARY_DIR}/lib/bfdev/generated)
include_directories(${CMAKE_SOURCE_DIR}/lib/bfdev/arch/generic/include)

get_property(BFDEV_INCLUDE_DIRS GLOBAL PROPERTY "BFDEV_INCLUDE_DIRS")
include_directories(${BFDEV_INCLUDE_DIRS})

0 comments on commit 9f25e6c

Please sign in to comment.