Last active
July 17, 2021 19:13
-
-
Save jll63/ddc5914abd514f0d38e11c155d615587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(MACROLAB macrolab.cpp) | |
add_custom_command( | |
OUTPUT ${MACROLAB} | |
COMMAND ${CMAKE_BUILD_TOOL} lab.i | |
COMMAND clang-format ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/lab.dir/lab.cpp.i > ${MACROLAB} | |
DEPENDS lab.cpp | |
) | |
add_custom_target( | |
${MACROLAB} | |
COMMAND make lab.i | |
COMMAND clang-format CMakeFiles/lab.dir/lab.cpp.i > ${MACROLAB} | |
DEPENDS lab.cpp | |
) | |
add_executable(macrolab ${MACROLAB}) | |
target_link_libraries(macrolab YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT}) | |
add_test(NAME macrolab COMMAND macrolab) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment