diff options
| author | svidyuk <[email protected]> | 2024-01-29 09:07:11 +0300 |
|---|---|---|
| committer | svidyuk <[email protected]> | 2024-01-29 09:33:30 +0300 |
| commit | 205e9a87fb80f5d30416efeda3e5de61464f0ffc (patch) | |
| tree | 2ddf6f49434664afbc5144a00b483699ce54128c | |
| parent | 410cc4c85917a69573dbc41ac39b97be72680db5 (diff) | |
Export module headers to cmake
| -rw-r--r-- | build/ymake.core.conf | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf index c0c2a070f50..0cbf22b6a0a 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -1166,7 +1166,8 @@ CPP_PROGRAM_SEM=add_executable $MODDIR $CMAKE_TARGET_NAME ${hide:TARGET} ${hide: && target_link_options PRIVATE $LDFLAGS_GLOBAL_RAW $LDFLAGS $OBJADDE_LIB $OBJADDE_LIB_GLOBAL $OBJADDE \ && target_include_directories PRIVATE $_C__INCLUDE_OWNED \ && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS $_SEM_EXTRA_CXX_FLAGS \ - && target_compile_options PRIVATE $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW + && target_compile_options PRIVATE $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW \ + && target_sources PRIVATE ${MODULE_EXPLICIT_HEADERS} ### @usage: PROGRAM([progname]) ### ### Regular program module. @@ -1778,7 +1779,8 @@ CPP_LIBRARY_SEM=add_library ${MODDIR} $CMAKE_TARGET_NAME ${hide:TARGET} ${hide:A && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS $_SEM_EXTRA_CXX_FLAGS \ && target_compile_options PUBLIC $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW \ && target_link_options INTERFACE $LDFLAGS_GLOBAL_RAW \ - && add_language C && add_language CXX + && add_language C && add_language CXX \ + && target_sources PRIVATE ${MODULE_EXPLICIT_HEADERS} CPP_OBJ_LIBRARY_SEM=add_global_library_for ${MODDIR} ${suf=.global:CMAKE_TARGET_NAME} $CMAKE_TARGET_NAME ${hide:GLOBAL_TARGET} ${hide:AUTO_INPUT} \ && target_include_directories PUBLIC $_C__INCLUDE_GLOBAL \ && target_include_directories PRIVATE $_C__INCLUDE_OWNED \ |
