generated from riscv-software-src/template-riscv-code
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jeff Nye
committed
Dec 28, 2023
1 parent
e3e1412
commit 8d40b08
Showing
23 changed files
with
4,053 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
cmake_minimum_required(VERSION 3.17) | ||
project(FusionProject) | ||
|
||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
|
||
# Add subdirectories | ||
add_subdirectory(fusion) | ||
add_subdirectory(test) | ||
|
||
# Check if Doxygen is installed | ||
find_package(Doxygen) | ||
if(DOXYGEN_FOUND) | ||
# Set input and output files | ||
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile) | ||
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxygen) | ||
|
||
# Request to configure the file | ||
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY) | ||
|
||
# Add a custom target to run Doxygen when user types "make docs" | ||
add_custom_target(docs | ||
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
COMMENT "Generating API documentation with Doxygen" | ||
VERBATIM) | ||
else(DOXYGEN_FOUND) | ||
message("Doxygen needs to be installed to generate the doxygen documentation") | ||
endif(DOXYGEN_FOUND) | ||
|
||
|
Oops, something went wrong.