Testing modules

This commit is contained in:
2025-03-18 06:58:03 -04:00
parent 9b3cdc0c13
commit 20057c3c5c

View File

@@ -19,9 +19,6 @@ function(AddFGLExecutable NAME SRC_SOURCES_LOCATION)
file(GLOB_RECURSE M_SOURCES CONFIGURE_DEPENDS
${SRC_SOURCES_LOCATION}/**.cppm)
# add_library(${NAME}_MODULES)
# target_sources(${NAME}_MODULES PUBLIC FILE_SET CXX_MODULES FILES ${M_SOURCES})
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS
${SRC_SOURCES_LOCATION}/**.cpp
${SRC_SOURCES_LOCATION}/**.hpp
@@ -39,13 +36,6 @@ function(AddFGLExecutable NAME SRC_SOURCES_LOCATION)
SetFGLFlags(${NAME})
endfunction()
function(LinkLibs NAME ACCESS LIB)
# if (TARGET ${NAME}_MODULES)
# target_link_libraries(${NAME}_MODULES ${ACCESS} ${LIB})
# endif ()
target_link_libraries(${NAME} ${ACCESS} ${LIB})
endfunction()
function(AddFGLLibrary NAME MODE SRC_SOURCES_LOCATION INCLUDE_SOURCES_LOCATION)
file(GLOB_RECURSE CPP_SOURCES CONFIGURE_DEPENDS ${SRC_SOURCES_LOCATION}/**.cpp)
file(GLOB_RECURSE HPP_SOURCES CONFIGURE_DEPENDS ${SRC_SOURCES_LOCATION}/**.hpp)