Commits

Anonymous committed af32aa8

Now generating the header file using the perl script.

  • Participants
  • Parent commits 4c01647
  • Branches conversion-to-cmake

Comments (0)

Files changed (1)

File src/wml_backend/p3_eperl/CMakeLists.txt

     ${SOURCES}
 )
 
+SET(SCRIPT "eperl_perl5_sm.pl")
+SET(HEADER "ieperl_perl5_sm.h")
+ADD_CUSTOM_COMMAND(
+    OUTPUT ${HEADER}
+    COMMAND ${PATH_PERL} 
+    ARGS ${SCRIPT}
+    DEPENDS ${SCRIPT}
+    VERBATIM
+)
+
+
+SET_SOURCE_FILES_PROPERTIES("eperl_perl5.c"
+    PROPERTIES OBJECT_DEPENDS ${HEADER}
+)
+
 SET_SOURCE_FILES_PROPERTIES(${SOURCES}
     PROPERTIES COMPILE_FLAGS "${perl_optimize} ${perl_ccflags} -I${perl_archlib}/CORE -I."
 )