build(common): expose the include dirs from the common library as public
This commit is contained in:
parent
1922f916af
commit
d6a935b5e9
2 changed files with 6 additions and 2 deletions
|
|
@ -3,8 +3,6 @@
|
|||
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
include_directories(./lib "${CMAKE_CURRENT_BINARY_DIR}/lib")
|
||||
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(apps)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,3 +26,9 @@ add_library(common STATIC
|
|||
)
|
||||
|
||||
target_link_libraries(common PUBLIC Qt6::Core)
|
||||
|
||||
target_include_directories(common
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/src/lib>
|
||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/src/lib>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue