mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
14 lines
388 B
CMake
14 lines
388 B
CMake
macro(AUTO_MTC TARGET ROOT_DIR)
|
|
if (NOT TARGET mtc)
|
|
add_subdirectory(${ROOT_DIR}/tools/mtc ${ROOT_DIR}/tools/mtc)
|
|
endif (NOT TARGET mtc)
|
|
|
|
set(AUTOMTC_SRC ${TARGET}_automtc.cpp)
|
|
|
|
file(GLOB INCLUDE_FILES src/*.h)
|
|
|
|
add_custom_command(OUTPUT ${AUTOMTC_SRC} COMMAND mtc -o ${AUTOMTC_SRC} ${INCLUDE_FILES} DEPENDS mtc ${INCLUDE_FILES})
|
|
|
|
endmacro()
|
|
|
|
|