Commit b0f5c77b authored by Bednárek David RNDr. Ph.D.'s avatar Bednárek David RNDr. Ph.D.
Browse files

cmake support for doxygen

parent c5ec471b
...@@ -22,6 +22,15 @@ else() ...@@ -22,6 +22,15 @@ else()
llvm_map_components_to_libnames(LLVM_LIBS_USED core mcjit nativecodegen) # executionengine interpreter mc support x86codegen llvm_map_components_to_libnames(LLVM_LIBS_USED core mcjit nativecodegen) # executionengine interpreter mc support x86codegen
endif() endif()
if(NOT DEFINED MAKE_DOXYGEN)
set(MAKE_DOXYGEN FALSE CACHE BOOL "Generate doxygen")
message("MAKE_DOXYGEN was not defined, defaulting to FALSE")
endif()
if(MAKE_DOXYGEN)
find_package(Doxygen REQUIRED dot)
endif()
set(THREADS_PREFER_PTHREAD_FLAG True) set(THREADS_PREFER_PTHREAD_FLAG True)
find_package(Threads REQUIRED) find_package(Threads REQUIRED)
...@@ -161,4 +170,10 @@ function(SOLUTION_LIBRARY_DUMP TARGET FRAMEWORK FRAMEWORK_DUMP) ...@@ -161,4 +170,10 @@ function(SOLUTION_LIBRARY_DUMP TARGET FRAMEWORK FRAMEWORK_DUMP)
add_dependencies("${TARGET}" ${FRAMEWORK_DUMP}) add_dependencies("${TARGET}" ${FRAMEWORK_DUMP})
target_link_libraries("${TARGET}" PUBLIC ${FRAMEWORK_DUMP}) target_link_libraries("${TARGET}" PUBLIC ${FRAMEWORK_DUMP})
endfunction()
function(DOXYGEN TARGET)
if(MAKE_DOXYGEN)
doxygen_add_docs("${TARGET}" ${ARGN} ALL)
endif()
endfunction() endfunction()
\ No newline at end of file
...@@ -15,3 +15,6 @@ target_sources("framework" PUBLIC "ckbisonflex.hpp" "ckir.hpp" "cktables.hpp" "c ...@@ -15,3 +15,6 @@ target_sources("framework" PUBLIC "ckbisonflex.hpp" "ckir.hpp" "cktables.hpp" "c
target_sources("framework_dump" PRIVATE "ckir.cpp" "cktables.cpp" "ckcontext.cpp" "ckmain.cpp") target_sources("framework_dump" PRIVATE "ckir.cpp" "cktables.cpp" "ckcontext.cpp" "ckmain.cpp")
target_sources("framework_dump" PUBLIC "ckbisonflex.hpp" "ckir.hpp" "cktables.hpp" "ckcontext.hpp" "ckgrptokens.hpp" "ckmain.hpp") target_sources("framework_dump" PUBLIC "ckbisonflex.hpp" "ckir.hpp" "cktables.hpp" "ckcontext.hpp" "ckgrptokens.hpp" "ckmain.hpp")
DOXYGEN("doxy" "ckbisonflex.hpp" "ckir.hpp" "cktables.hpp" "ckcontext.hpp" "ckgrptokens.hpp" "ckmain.hpp")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment