File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,18 @@ function (yup_standalone_app)
7676 return ()
7777 endif ()
7878
79+ # ==== Find modules includes
80+ set (module_include_dirs "" )
81+ foreach (module IN ITEMS ${YUP_ARG_MODULES} )
82+ _yup_message (STATUS "${target_name} - Including module ${module} " )
83+ get_target_property (module_path ${module} YUP_MODULE_PATH)
84+ if (module_path AND EXISTS "${module_path} " )
85+ get_filename_component (module_path "${module_path} " DIRECTORY )
86+ list (APPEND module_include_dirs "${module_path} " )
87+ endif ()
88+ endforeach ()
89+ list (REMOVE_DUPLICATES module_include_dirs)
90+
7991 # ==== Find dependencies
8092 if (NOT "${target_console} " AND NOT YUP_PLATFORM_EMSCRIPTEN)
8193 _yup_message (STATUS "${target_name} - Fetching SDL2 library" )
@@ -108,6 +120,7 @@ function (yup_standalone_app)
108120 endif ()
109121
110122 target_compile_features (${target_name} PRIVATE cxx_std_${target_cxx_standard} )
123+ target_include_directories (${target_name} PRIVATE ${module_include_dirs} )
111124
112125 # ==== Per platform configuration
113126 if (YUP_PLATFORM_APPLE)
You can’t perform that action at this time.
0 commit comments