build: add POET version to doxygen parameter list

This commit is contained in:
Max Lübke 2023-03-07 10:54:15 +01:00
parent e04da71f92
commit 5ea2fe5d6f
3 changed files with 6 additions and 5 deletions

View File

@ -14,6 +14,8 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
include("CMake/POET_Scripts.cmake")
list(APPEND CMAKE_MODULE_PATH "${POET_SOURCE_DIR}/CMake")
get_poet_version()
# set(GCC_CXX_FLAGS "-D STRICT_R_HEADERS") add_definitions(${GCC_CXX_FLAGS})
find_package(MPI REQUIRED)

View File

@ -1,11 +1,9 @@
get_poet_version()
configure_file(poet.h.in poet.h)
if (POET_USE_PRM_BACKEND)
set(poet_SRC poet_prm.cpp)
if(POET_USE_PRM_BACKEND)
set(poet_SRC poet_prm.cpp)
else()
set(poet_SRC poet.cpp)
set(poet_SRC poet.cpp)
endif()
add_executable(poet ${poet_SRC})

View File

@ -9,6 +9,7 @@ if(DOXYGEN_FOUND)
set(DOXYGEN_DISABLE_INDEX NO)
set(DOXYGEN_GENERATE_TREEVIEW YES)
set(DOXYGEN_FULL_SIDEBAR YES)
set(DOXYGEN_PROJECT_NUMBER ${POET_VERSION})
doxygen_add_docs(doxygen
${PROJECT_SOURCE_DIR}/include