Skip to content

Commit 5522821

Browse files
committed
Add include directories for modules
1 parent 1c88726 commit 5522821

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/module.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ set(QML_IMPORT_PATH "${QML_IMPORT_PATH};${CMAKE_CURRENT_LIST_DIR}"
2020
)
2121

2222
target_link_libraries(${MODULE} PRIVATE ${QT_LIBS})
23+
target_include_directories(${MODULE} PRIVATE ${PROJECT_SOURCE_DIR}/src)
24+
target_include_directories(${MODULE} PRIVATE ${PROJECT_SOURCE_DIR}/src/global)
2325

2426
list(APPEND QML_IMPORT_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
2527
list(REMOVE_DUPLICATES QML_IMPORT_PATH)

0 commit comments

Comments
 (0)