Skip to content

Commit a0db063

Browse files
authored
v2 - rename rawtoaces_idt to rawtoaces_core (#160)
Signed-off-by: Anton Dukhovnikov <[email protected]>
1 parent 22b83ce commit a0db063

File tree

15 files changed

+42
-41
lines changed

15 files changed

+42
-41
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.11)
1+
cmake_minimum_required(VERSION 3.12)
22
project( RAWTOACES )
33

44
if( NOT DEFINED CMAKE_CXX_STANDARD )
@@ -11,7 +11,7 @@ set( RAWTOACES_MINOR_VERSION 1 )
1111
set( RAWTOACES_PATCH_VERSION 0 )
1212
set( RAWTOACES_VERSION ${RAWTOACES_MAJOR_VERSION}.${RAWTOACES_MINOR_VERSION}.${RAWTOACES_PATCH_VERSION} )
1313

14-
set(RAWTOACESIDTLIB "rawtoaces_idt")
14+
set(RAWTOACES_CORE_LIB "rawtoaces_core")
1515
set(RAWTOACESLIB "rawtoaces_util")
1616

1717
set( CMAKE_MACOSX_RPATH 1 )
@@ -77,7 +77,7 @@ include ( configure.cmake )
7777
## Build
7878

7979
add_definitions( -DPACKAGE="RAWTOACES" -DVERSION="${RAWTOACES_VERSION}" )
80-
add_subdirectory("src/${RAWTOACESIDTLIB}")
80+
add_subdirectory("src/${RAWTOACES_CORE_LIB}")
8181
add_subdirectory("src/${RAWTOACESLIB}")
8282
add_subdirectory("src/rawtoaces")
8383

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To build `rawtoaces` you would need to satisfy these dependencies:
3737

3838
| Library | Min Version| Purpose | Link to installation instruction |
3939
| ------- | -----------| -------- | -------------------------------- |
40-
| `cmake` | `3.11` | | [CMake download](https://cmake.org/download/)|
40+
| `cmake` | `3.12` | | [CMake download](https://cmake.org/download/)|
4141
| `ceres` | `1.12.0` | Ceres Solver is an open source library for solving Non-linear Least Squares problems with bounds constraints and unconstrained optimization problems. It processes non-linear regression for rawtoaces. | [Ceres Solver installation](http://ceres-solver.org/installation.html)|
4242
| `imath` | `3.1.8` | Provides the half data type used for representing 16-bit floating-point values. It's used by rawtoaces for storing high dynamic range (HDR) data in a compact format. | [Imath installation](https://imath.readthedocs.io/en/latest/install.html#install)|
4343
| `libraw` | `0.19.4` | LibRaw is a library that processes RAW files from digital cameras. It handles image pre-processing for rawtoaces. | [LibRaw download](http://www.libraw.org/download) |
@@ -112,7 +112,7 @@ $ cmake --build build
112112
$ sudo cmake --install build # Optional if you want it to be accessible system wide
113113
```
114114

115-
The default process will install `librawtoaces_idt_${rawtoaces_version}.dylib` and `librawtoaces_util_${rawtoaces_version}.dylib` to `/usr/local/lib`, a few header files to `/usr/local/include/rawtoaces` and a number of data files into `/usr/local/include/rawtoaces/data`.
115+
The default process will install `librawtoaces_core_${rawtoaces_version}.dylib` and `librawtoaces_util_${rawtoaces_version}.dylib` to `/usr/local/lib`, a few header files to `/usr/local/include/rawtoaces` and a number of data files into `/usr/local/include/rawtoaces/data`.
116116

117117
#### Docker
118118

include/rawtoaces/acesrender.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#ifndef _ACESRENDER_h__
55
#define _ACESRENDER_h__
66

7-
#include <rawtoaces/rta.h>
7+
#include <rawtoaces/rawtoaces_core.h>
88

99
#include <unordered_map>
1010
#include <libraw/libraw.h>
File renamed without changes.

src/rawtoaces/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.12)
22

33
add_executable( rawtoaces
44
main.cpp
@@ -19,4 +19,4 @@ else ()
1919
endif ()
2020

2121

22-
install( TARGETS rawtoaces DESTINATION ${INSTALL_BIN_DIR} )
22+
install( TARGETS rawtoaces DESTINATION ${INSTALL_BIN_DIR} )

src/rawtoaces_idt/CMakeLists.txt renamed to src/rawtoaces_core/CMakeLists.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.12)
22
include_directories( "${CMAKE_CURRENT_SOURCE_DIR}" )
33

4-
set( IDT_PUBLIC_HEADER
4+
set( CORE_PUBLIC_HEADER
55
../../include/rawtoaces/define.h
66
../../include/rawtoaces/mathOps.h
7-
../../include/rawtoaces/rta.h
7+
../../include/rawtoaces/rawtoaces_core.h
88
)
99

10-
add_library( ${RAWTOACESIDTLIB} ${DO_SHARED}
11-
rta.cpp
10+
add_library( ${RAWTOACES_CORE_LIB} ${DO_SHARED}
11+
rawtoaces_core.cpp
1212

1313
# Make the headers visible in IDEs. This should not affect the builds.
14-
${IDT_PUBLIC_HEADER}
14+
${CORE_PUBLIC_HEADER}
1515
)
1616

1717
target_link_libraries(
18-
${RAWTOACESIDTLIB}
18+
${RAWTOACES_CORE_LIB}
1919
PUBLIC
2020
Boost::boost
2121
Boost::system
@@ -25,26 +25,26 @@ target_link_libraries(
2525
)
2626

2727
if ( ${Ceres_VERSION_MAJOR} GREATER 1 )
28-
target_link_libraries( ${RAWTOACESIDTLIB} PUBLIC Ceres::ceres )
28+
target_link_libraries( ${RAWTOACES_CORE_LIB} PUBLIC Ceres::ceres )
2929
else ()
30-
target_include_directories(${RAWTOACESIDTLIB} PUBLIC ${CERES_INCLUDE_DIRS})
31-
target_link_libraries(${RAWTOACESIDTLIB} PUBLIC ${CERES_LIBRARIES})
30+
target_include_directories(${RAWTOACES_CORE_LIB} PUBLIC ${CERES_INCLUDE_DIRS})
31+
target_link_libraries(${RAWTOACES_CORE_LIB} PUBLIC ${CERES_LIBRARIES})
3232
endif ()
3333

34-
target_include_directories( ${RAWTOACESIDTLIB} PUBLIC
34+
target_include_directories( ${RAWTOACES_CORE_LIB} PUBLIC
3535
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include>
3636
$<INSTALL_INTERFACE:./include>
3737
)
3838

39-
set_target_properties( ${RAWTOACESIDTLIB} PROPERTIES
40-
OUTPUT_NAME "rawtoaces_idt"
41-
EXPORT_NAME "rawtoaces_idt"
42-
PUBLIC_HEADER "${IDT_PUBLIC_HEADER}"
39+
set_target_properties( ${RAWTOACES_CORE_LIB} PROPERTIES
40+
OUTPUT_NAME "rawtoaces_core"
41+
EXPORT_NAME "rawtoaces_core"
42+
PUBLIC_HEADER "${CORE_PUBLIC_HEADER}"
4343
SOVERSION ${RAWTOACES_MAJOR_VERSION}.${RAWTOACES_MINOR_VERSION}.${RAWTOACES_PATCH_VERSION}
4444
VERSION ${RAWTOACES_VERSION}
4545
)
4646

47-
install( TARGETS ${RAWTOACESIDTLIB}
47+
install( TARGETS ${RAWTOACES_CORE_LIB}
4848
EXPORT RAWTOACESTargets
4949
LIBRARY DESTINATION ${INSTALL_LIB_DIR}
5050
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}

src/rawtoaces_idt/rta.cpp renamed to src/rawtoaces_core/rawtoaces_core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// Copyright Contributors to the rawtoaces Project.
33

4-
#include <rawtoaces/rta.h>
4+
#include <rawtoaces/rawtoaces_core.h>
55
#include <rawtoaces/mathOps.h>
66

77
#include <boost/property_tree/ptree.hpp>

src/rawtoaces_util/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.12)
22
include_directories( "${CMAKE_CURRENT_SOURCE_DIR}" )
33

44
set( UTIL_PUBLIC_HEADER
@@ -24,7 +24,7 @@ endif()
2424

2525
target_link_libraries ( ${RAWTOACESLIB}
2626
PUBLIC
27-
${RAWTOACESIDTLIB}
27+
${RAWTOACES_CORE_LIB}
2828
INTERFACE
2929
Eigen3::Eigen
3030
Imath::Imath

unittest/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10)
1+
cmake_minimum_required(VERSION 3.12)
22

33
add_definitions (-DBOOST_TEST_DYN_LINK)
44

@@ -12,7 +12,7 @@ add_executable (
1212
target_link_libraries(
1313
Test_Spst
1414
PUBLIC
15-
${RAWTOACESIDTLIB}
15+
${RAWTOACES_CORE_LIB}
1616
Boost::unit_test_framework
1717
)
1818

@@ -28,7 +28,7 @@ add_executable (
2828
target_link_libraries(
2929
Test_IDT
3030
PUBLIC
31-
${RAWTOACESIDTLIB}
31+
${RAWTOACES_CORE_LIB}
3232
Boost::unit_test_framework
3333
)
3434

@@ -44,7 +44,7 @@ add_executable (
4444
target_link_libraries(
4545
Test_Illum
4646
PUBLIC
47-
${RAWTOACESIDTLIB}
47+
${RAWTOACES_CORE_LIB}
4848
Boost::unit_test_framework
4949
)
5050

@@ -60,7 +60,7 @@ add_executable (
6060
target_link_libraries(
6161
Test_DNGIdt
6262
PUBLIC
63-
${RAWTOACESIDTLIB}
63+
${RAWTOACES_CORE_LIB}
6464
Boost::unit_test_framework
6565
)
6666

@@ -84,7 +84,7 @@ add_executable (
8484
target_link_libraries(
8585
Test_Math
8686
PUBLIC
87-
${RAWTOACESIDTLIB}
87+
${RAWTOACES_CORE_LIB}
8888
Boost::unit_test_framework
8989
)
9090

@@ -100,7 +100,7 @@ add_executable (
100100
target_link_libraries(
101101
Test_Logic
102102
PUBLIC
103-
${RAWTOACESIDTLIB}
103+
${RAWTOACES_CORE_LIB}
104104
Boost::unit_test_framework
105105
)
106106

@@ -116,7 +116,7 @@ add_executable (
116116
target_link_libraries(
117117
Test_Misc
118118
PUBLIC
119-
${RAWTOACESIDTLIB}
119+
${RAWTOACES_CORE_LIB}
120120
Boost::unit_test_framework
121121
)
122122

unittest/config_tests/core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ add_executable( test_core
1111
target_link_libraries(
1212
test_core
1313
PUBLIC
14-
rawtoaces_idt
14+
rawtoaces_core
1515
Boost::boost
1616
Boost::unit_test_framework
1717
)

0 commit comments

Comments
 (0)