wormhole/cmake/Module.cmake
nekobit b5b412437f Compile-time Module system
FossilOrigin-Name: 201dd545a95e0aeca03a6a6795485c7831b7815fcebf8a6e6ebe1a1c3a559e15
2022-10-05 12:53:44 +00:00

6 lines
185 B
CMake

macro(add_module TheModule)
message("-- Adding module ${TheModule}")
set("MODULE_${TheModule}" ON)
target_compile_definitions(wormhole PRIVATE
MODULE_${TheModule})
endmacro()