diff options
author | Anonymous Maarten <anonymous.maarten@gmail.com> | 2020-09-16 14:24:06 (GMT) |
---|---|---|
committer | Anonymous Maarten <anonymous.maarten@gmail.com> | 2020-09-16 17:36:33 (GMT) |
commit | e7311a036e16cf56692862103be37df95853a1dc (patch) | |
tree | b172cd4da67a5031b36d96523d4ff59358f432c4 /libmscgen | |
parent | 0fc06d657d596adcc289a5f228973ea268efd66d (diff) | |
download | Doxygen-e7311a036e16cf56692862103be37df95853a1dc.zip Doxygen-e7311a036e16cf56692862103be37df95853a1dc.tar.gz Doxygen-e7311a036e16cf56692862103be37df95853a1dc.tar.bz2 |
Allow building doxygen as a subproject
Diffstat (limited to 'libmscgen')
-rw-r--r-- | libmscgen/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmscgen/CMakeLists.txt b/libmscgen/CMakeLists.txt index 079fcfc..0a23900 100644 --- a/libmscgen/CMakeLists.txt +++ b/libmscgen/CMakeLists.txt @@ -1,14 +1,14 @@ include_directories( - ${CMAKE_SOURCE_DIR}/liblodepng - ${CMAKE_SOURCE_DIR}/libmscgen + ${PROJECT_SOURCE_DIR}/liblodepng + ${PROJECT_SOURCE_DIR}/libmscgen ${GENERATED_SRC} ) set(LEX_FILES mscgen_lexer) foreach(lex_file ${LEX_FILES}) add_custom_command( - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/scan_states.py ${CMAKE_SOURCE_DIR}/libmscgen/${lex_file}.l > ${GENERATED_SRC}/${lex_file}.l.h - DEPENDS ${CMAKE_SOURCE_DIR}/src/scan_states.py ${CMAKE_SOURCE_DIR}/libmscgen/${lex_file}.l + COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/src/scan_states.py ${PROJECT_SOURCE_DIR}/libmscgen/${lex_file}.l > ${GENERATED_SRC}/${lex_file}.l.h + DEPENDS ${PROJECT_SOURCE_DIR}/src/scan_states.py ${PROJECT_SOURCE_DIR}/libmscgen/${lex_file}.l OUTPUT ${GENERATED_SRC}/${lex_file}.l.h ) set_source_files_properties(${GENERATED_SRC}/${lex_file}.l.h PROPERTIES GENERATED 1) |