Skip to content
Snippets Groups Projects
Commit 86b5645c authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

use custom command rather than run for generator script

parent 423e1bc4
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ target_sources(counting
PRIVATE
labs/counting/main.cpp
)
exec_program(python ${CMAKE_CURRENT_BINARY_DIR}
ARGS ${CMAKE_CURRENT_SOURCE_DIR}/labs/counting/generate.py
add_custom_command( TARGET counting
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/labs/counting/generate.py
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment