[CMake] Add new suffix rules

William A. Hoffman billlist at nycap.rr.com
Mon Apr 17 11:07:06 EDT 2006


At 09:50 AM 4/17/2006, Lorensen, William E (GE, Research) wrote:
>It has C++ code snippets in it. I #include in a C++ program. BTW, my code works for Visual Studio 7. It fails on Borland and linux.

This should work:

ADD_CUSTOM_COMMAND(
      OUTPUT ${TMP_FILENAME}.clp
          DEPENDS GenerateCLP ${TMP_INPUT}
          COMMAND ${GENERATECLP_EXE}
          ${TMP_INPUT} ${CMAKE_CURRENT_SOURCE_DIR}/${TMP_FILENAME}.clp
          )
# mark the .clp file as a header file
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/${TMP_FILENAME}.clp PROPERTIES HEADER_FILE_ONLY TRUE)


However, I am thinking that this should not be an error, and will look into
fixing the code.

-Bill



More information about the CMake mailing list