Skip to content

Commit c4fb776

Browse files
committed
switch to rawtoaces_data repo
Signed-off-by: Anton Dukhovnikov <[email protected]>
1 parent 600d04d commit c4fb776

19 files changed

+78
-1982
lines changed

CMakeLists.txt

Lines changed: 31 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.11)
22
project( RAWTOACES )
33

44
set( RAWTOACES_MAJOR_VERSION 1 )
@@ -99,8 +99,37 @@ install( FILES "${PROJECT_BINARY_DIR}/RAWTOACESLibraryDepends.cmake" DESTINATION
9999
"${INSTALL_CMAKE_DIR}" COMPONENT dev )
100100
endif( )
101101

102+
###############################################################################
103+
##
104+
## Fetch data files from rawtoaces-data
105+
##
106+
include(FetchContent)
107+
108+
FetchContent_Declare(
109+
rawtoaces_data
110+
GIT_REPOSITORY https://github.com/antond-weta/rawtoaces-data
111+
GIT_TAG origin/main
112+
)
113+
114+
FetchContent_MakeAvailable(rawtoaces_data)
115+
116+
###############################################################################
117+
102118
if ( APPLE OR UNIX )
103-
install (DIRECTORY data DESTINATION include/rawtoaces)
119+
install (
120+
DIRECTORY
121+
${PROJECT_BINARY_DIR}/_deps/rawtoaces_data-src/camera
122+
${PROJECT_BINARY_DIR}/_deps/rawtoaces_data-src/cmf
123+
${PROJECT_BINARY_DIR}/_deps/rawtoaces_data-src/illuminant
124+
${PROJECT_BINARY_DIR}/_deps/rawtoaces_data-src/training
125+
DESTINATION include/rawtoaces/data
126+
)
127+
128+
install (
129+
FILES
130+
${PROJECT_BINARY_DIR}/_deps/rawtoaces_data-src/LICENSE
131+
DESTINATION include/rawtoaces/data
132+
)
104133
endif()
105134

106135
### to build rawtoaces ###

data/camera/arri_d21_380_780_5.json

Lines changed: 0 additions & 111 deletions
This file was deleted.

data/camera/canon_eos_5d_mark_ii_380_780_5.json

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)