Add definition for each module
This commit is contained in:
1 parent
b13c08ef9b
commit
4cdb044e83
1 file changed
+1
@@ -18,6 +18,7 @@ MACRO(ADD_MODULE name file )
|
|||||||
list(APPEND plaYUver_Mod_SRCS ${file} )
|
list(APPEND plaYUver_Mod_SRCS ${file} )
|
||||||
LIST(APPEND MODULES_LIST ${name} )
|
LIST(APPEND MODULES_LIST ${name} )
|
||||||
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/ModulesListHeader.h "#include \"${file}.h\"\n")
|
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/ModulesListHeader.h "#include \"${file}.h\"\n")
|
||||||
|
add_definitions( -DUSE_MODULE_${name} )
|
||||||
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/ModulesListMacro.h "\\\n REGISTER_MODULE( ${name} ); ")
|
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/ModulesListMacro.h "\\\n REGISTER_MODULE( ${name} ); ")
|
||||||
endif()
|
endif()
|
||||||
unset(__modulename)
|
unset(__modulename)
|
||||||
|
|||||||
Reference in new issue
Block a user