#$(TEST_UNITS): $(TEST_CFILES)
string(REPLACE ";" " " USE_TEST_CFILES "${TEST_CFILES}")
+ exec_program("chmod a=rwx ${PROJECT_DIRECTORY}/tools/sg_unit_extractor.pl" "${PROJECT_DIRECTORY}/src/")
exec_program("${PROJECT_DIRECTORY}/tools/sg_unit_extractor.pl ${USE_TEST_CFILES}" "${PROJECT_DIRECTORY}/src/")
#@builddir@/simgrid_units_main.c: $(TEST_UNITS)
exec_program("${PROJECT_DIRECTORY}/tools/sg_unit_extractor.pl ${PROJECT_DIRECTORY}/src/xbt/cunit.c" "${PROJECT_DIRECTORY}/src/")
- #clean-units:
- foreach(file ${TEST_UNITS})
- exec_program("echo ${file}|sed -e 's|.c$$|.Po|' -e 's|[^/]*/||' -e 's|^|.deps/|'" "${PROJECT_DIRECTORY}/src/" OUTPUT_VARIABLE dep)
- exec_program("echo \"Removing dependency tracker of ${file} (${dep} ${PROJECT_DIRECTORY}/src/${dep})\"" OUTPUT_VARIABLE OKITOKI)
- message("${OKITOKI}")
- exec_program("rm -vf ${dep} ${PROJECT_DIRECTORY}/src/${dep}" "${PROJECT_DIRECTORY}/src/" OUTPUT_VARIABLE OKITOKI)
- exec_program("touch ${dep}" "${PROJECT_DIRECTORY}/src/" OUTPUT_VARIABLE OKITOKI)
- endforeach(file ${TEST_UNITS})
else(PERL_EXE)
message(FATAL_ERROR "Install perl before use maintainer mode")
endif(PERL_EXE)
message("________________________________________________________________________________")
message("________________________________________________________________________________ SG_UNIT_EXTRACTOR END")
+#Those lines permit to remake a cmake configure if "sources to look" have been changed
foreach(file ${SRC_TO_LOOK})
configure_file(${file} ${file} COPYONLY)
endforeach(file ${SRC_TO_LOOK})