Skip to content

Commit

Permalink
fix formatting and clang build
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Dukhovnikov <[email protected]>
  • Loading branch information
antond-weta committed Feb 9, 2025
1 parent 4f33dc5 commit 0fcced4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rawtoaces_idt/rta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,13 @@ vector<double> Illum::cctToxy( const double &cctd ) const
if ( cctd >= 4002.15 && cctd <= 7003.77 )
xy[0] =
( 0.244063 + 99.11 / cctd +
2.9678 * 1000000 / (std::pow( cctd, 2 ) )-4.6070 * 1000000000 /
( std::pow( cctd, 3 ) ) );
2.9678 * 1000000 / ( std::pow( cctd, 2 ) )
-4.6070 * 1000000000 / ( std::pow( cctd, 3 ) ) );
else
xy[0] =
( 0.237040 + 247.48 / cctd +
1.9018 * 1000000 / (std::pow( cctd, 2 ) )-2.0064 * 1000000000 /
( std::pow( cctd, 3 ) ) );
1.9018 * 1000000 / ( std::pow( cctd, 2 ) )
-2.0064 * 1000000000 / ( std::pow( cctd, 3 ) ) );

xy[1] = -3.0 * ( std::pow( xy[0], 2 ) ) + 2.87 * xy[0] - 0.275;

Expand Down
14 changes: 14 additions & 0 deletions unittest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ add_executable (
testSpst.cpp
)

set_property(TARGET Test_Spst PROPERTY CXX_STANDARD 17)

target_link_libraries(
Test_Spst
PUBLIC
Expand All @@ -21,6 +23,8 @@ add_executable (
testIDT.cpp
)

set_property(TARGET Test_IDT PROPERTY CXX_STANDARD 17)

target_link_libraries(
Test_IDT
PUBLIC
Expand All @@ -37,6 +41,8 @@ add_executable (
testIllum.cpp
)

set_property(TARGET Test_Illum PROPERTY CXX_STANDARD 17)

target_link_libraries(
Test_Illum
PUBLIC
Expand All @@ -51,6 +57,8 @@ add_executable (
testDNGIdt.cpp
)

set_property(TARGET Test_DNGIdt PROPERTY CXX_STANDARD 17)

target_link_libraries(
Test_DNGIdt
PUBLIC
Expand All @@ -65,6 +73,8 @@ add_executable (
testMath.cpp
)

set_property(TARGET Test_Math PROPERTY CXX_STANDARD 17)

target_link_libraries(
Test_Math
PUBLIC
Expand All @@ -79,6 +89,8 @@ add_executable (
testLogic.cpp
)

set_property(TARGET Test_Logic PROPERTY CXX_STANDARD 17)

target_link_libraries(
Test_Logic
PUBLIC
Expand All @@ -93,6 +105,8 @@ add_executable (
testMisc.cpp
)

set_property(TARGET Test_Misc PROPERTY CXX_STANDARD 17)

target_link_libraries(
Test_Misc
PUBLIC
Expand Down

0 comments on commit 0fcced4

Please sign in to comment.