mirror of
https://github.com/DrasLorus/CORDIC_Rotate_APFX.git
synced 2024-11-24 13:43:16 +01:00
Just an auto-formatting correction
This commit is contained in:
parent
f0035238bf
commit
4a0236baea
3 changed files with 18 additions and 14 deletions
|
@ -99,7 +99,7 @@ set (
|
|||
"ml"
|
||||
CACHE STRING "RomGenerator to use, either 'ml' or 'cst'."
|
||||
)
|
||||
set_property(CACHE ROM_TYPE PROPERTY STRINGS "ml" "cst")
|
||||
set_property (CACHE ROM_TYPE PROPERTY STRINGS "ml" "cst")
|
||||
|
||||
set (
|
||||
CORDIC_W
|
||||
|
@ -126,7 +126,8 @@ add_subdirectory (RomGenerators)
|
|||
|
||||
set (ROM_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/sources/CordicRoms)
|
||||
string (
|
||||
CONFIGURE ${ROM_DIRECTORY}/cordic_rom_${ROM_TYPE}_${CORDIC_W}_${CORDIC_STAGES}_${CORDIC_Q}_${CORDIC_DIVIDER}.hpp
|
||||
CONFIGURE
|
||||
${ROM_DIRECTORY}/cordic_rom_${ROM_TYPE}_${CORDIC_W}_${CORDIC_STAGES}_${CORDIC_Q}_${CORDIC_DIVIDER}.hpp
|
||||
ROM_HEADER
|
||||
)
|
||||
add_custom_command (
|
||||
|
@ -135,8 +136,12 @@ add_custom_command (
|
|||
WORKING_DIRECTORY ${ROM_DIRECTORY}
|
||||
)
|
||||
|
||||
set (CORDIC_ROM_HEADER CCordicRotateRom_${ROM_TYPE}_${CORDIC_W}_${CORDIC_STAGES}_${CORDIC_Q}_${CORDIC_DIVIDER}.hpp)
|
||||
set (CORDIC_ROM_SOURCE CCordicRotateRom_${ROM_TYPE}_${CORDIC_W}_${CORDIC_STAGES}_${CORDIC_Q}_${CORDIC_DIVIDER}.cpp)
|
||||
set (CORDIC_ROM_HEADER
|
||||
CCordicRotateRom_${ROM_TYPE}_${CORDIC_W}_${CORDIC_STAGES}_${CORDIC_Q}_${CORDIC_DIVIDER}.hpp
|
||||
)
|
||||
set (CORDIC_ROM_SOURCE
|
||||
CCordicRotateRom_${ROM_TYPE}_${CORDIC_W}_${CORDIC_STAGES}_${CORDIC_Q}_${CORDIC_DIVIDER}.cpp
|
||||
)
|
||||
configure_file (
|
||||
sources/CCordicRotateRom/CCordicRotateRom.hpp.in
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/CCordicRotateRom/${CORDIC_ROM_HEADER} @ONLY
|
||||
|
|
|
@ -34,8 +34,7 @@ project (
|
|||
)
|
||||
|
||||
add_library (
|
||||
romgen sources/RomGeneratorML/RomGeneratorML.cpp
|
||||
sources/RomGeneratorConst/RomGeneratorConst.cpp
|
||||
romgen sources/RomGeneratorML/RomGeneratorML.cpp sources/RomGeneratorConst/RomGeneratorConst.cpp
|
||||
)
|
||||
target_include_directories (romgen PUBLIC sources)
|
||||
|
||||
|
@ -74,10 +73,10 @@ set (
|
|||
CACHE STRING "Rotation denominator."
|
||||
)
|
||||
|
||||
set (current_generator_source ${CMAKE_CURRENT_SOURCE_DIR}/sources/main_generator_${ROM_TYPE}_${CORDIC_W}_${CORDIC_STAGES}_${CORDIC_Q}_${CORDIC_DIVIDER}.cpp)
|
||||
configure_file (
|
||||
sources/main_generator.cpp.in
|
||||
${current_generator_source} @ONLY
|
||||
set (
|
||||
current_generator_source
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/main_generator_${ROM_TYPE}_${CORDIC_W}_${CORDIC_STAGES}_${CORDIC_Q}_${CORDIC_DIVIDER}.cpp
|
||||
)
|
||||
configure_file (sources/main_generator.cpp.in ${current_generator_source} @ONLY)
|
||||
add_executable (rom_generator ${current_generator_source})
|
||||
target_link_libraries (rom_generator PUBLIC romgen)
|
||||
|
|
Loading…
Reference in a new issue