File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
lfc/core/src/main/kotlin/org/lflang/generator/uc Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ abstract class UcCmakeGenerator(
5050 |cmake_minimum_required(VERSION $minCmakeVersion )
5151 |project(${mainTarget} LANGUAGES C)
5252 |set(LF_MAIN_TARGET ${mainTarget} )
53+ |set(SOURCE_FOLDER ${fileConfig.srcPath} )
5354 |set(CMAKE_BUILD_TYPE ${targetConfig.getOrDefault(BuildTypeProperty .INSTANCE )} )
5455 |set(PLATFORM POSIX CACHE STRING "Target platform")
5556 |include($S {CMAKE_CURRENT_SOURCE_DIR}/Include.cmake)
@@ -62,6 +63,7 @@ abstract class UcCmakeGenerator(
6263 |add_compile_definitions($S {LFC_GEN_COMPILE_DEFS})
6364 |add_subdirectory($S {RUNTIME_PATH})
6465 |target_link_libraries($S {LF_MAIN_TARGET} PRIVATE reactor-uc)
66+ |target_include_directories($S {LF_MAIN_TARGET} PRIVATE $S {SOURCE_FOLDER})
6567 |target_include_directories($S {LF_MAIN_TARGET} PRIVATE $S {LFC_GEN_INCLUDE_DIRS})
6668 ${" |" .. (includeFiles?.joinWithLn { " include(\" $it \" )" } ? : " " )}
6769 """
You can’t perform that action at this time.
0 commit comments