Modules attempt
This commit is contained in:
@@ -38,8 +38,18 @@ 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)
|
||||
message("Found {CPPM_SOURCES}")
|
||||
file(GLOB_RECURSE INCLUDE_HPP_SOURCES CONFIGURE_DEPENDS ${INCLUDE_SOURCES_LOCATION}/**.hpp)
|
||||
file(GLOB_RECURSE INCLUDE_CPPM_SOURCES CONFIGURE_DEPENDS ${INCLUDE_SOURCES_LOCATION}/**.cppm)
|
||||
add_library(${NAME} ${MODE} ${CPP_SOURCES} ${HPP_SOURCES} ${INCLUDE_SOURCES_LOCATION})
|
||||
|
||||
|
||||
file(GLOB_RECURSE CPPM_SOURCES CONFIGURE_DEPENDS ${SRC_SOURCES_LOCATION}/**.cppm)
|
||||
|
||||
target_sources(${NAME} PUBLIC FILE_SET modules TYPE CXX_MODULES BASE_DIRS ${SRC_SOURCES_LOCATION} FILES ${CPPM_SOURCES})
|
||||
|
||||
target_compile_features(${NAME} PRIVATE cxx_std_23 INTERFACE cxx_std_20)
|
||||
|
||||
target_include_directories(${NAME} PUBLIC ${INCLUDE_SOURCES_LOCATION})
|
||||
target_include_directories(${NAME} PRIVATE ${SRC_SOURCES_LOCATION})
|
||||
SetFGLFlags(${NAME})
|
||||
|
||||
Reference in New Issue
Block a user