File tree 7 files changed +49
-49
lines changed
7 files changed +49
-49
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,18 @@ jobs:
100
100
c_compiler : gcc
101
101
cpp_compiler : g++
102
102
install_deps : install_deps_linux
103
+ build_shared_libs : ON
103
104
- title : ubuntu
104
105
os : ubuntu-24.04
105
106
cpp_compiler : clang++
106
107
install_deps : install_deps_linux
108
+ build_shared_libs : ON
107
109
- title : macos
108
110
os : macos-latest
109
111
c_compiler : clang
110
112
cpp_compiler : clang++
111
113
install_deps : install_deps_mac
114
+ build_shared_libs : ON
112
115
exclude :
113
116
- title : windows
114
117
c_compiler : gcc
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ else ()
64
64
set ( DO_SHARED STATIC )
65
65
endif ()
66
66
67
- include ( GNUInstallDirs )
68
67
include ( configure.cmake )
69
68
70
69
@@ -98,25 +97,6 @@ install( FILES
98
97
99
98
100
99
101
- install (
102
- TARGETS rawtoaces_idt rawtoaces_util rawtoaces_util2 rawtoaces
103
- EXPORT RawToAcesConfig
104
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
105
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
106
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
107
- )
108
-
109
- export (
110
- TARGETS rawtoaces_idt rawtoaces_util rawtoaces_util2 rawtoaces
111
- NAMESPACE RawToAces::
112
- FILE "${CMAKE_CURRENT_BINARY_DIR} /RawToAcesConfig.cmake"
113
- )
114
-
115
- install (
116
- EXPORT RawToAcesConfig
117
- DESTINATION "${CMAKE_INSTALL_LIBDIR} /CMake/RawToAces"
118
- NAMESPACE RawToAces::
119
- )
120
100
121
101
122
102
@@ -127,6 +107,28 @@ install( FILES "${PROJECT_BINARY_DIR}/RAWTOACESLibraryDepends.cmake" DESTINATION
127
107
endif ( )
128
108
129
109
if ( APPLE OR UNIX )
110
+ include ( GNUInstallDirs )
111
+
112
+ install (
113
+ TARGETS rawtoaces_idt rawtoaces_util rawtoaces_util2 rawtoaces
114
+ EXPORT RawToAcesConfig
115
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
116
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
117
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
118
+ )
119
+
120
+ export (
121
+ TARGETS rawtoaces_idt rawtoaces_util rawtoaces_util2 rawtoaces
122
+ NAMESPACE RawToAces::
123
+ FILE "${CMAKE_CURRENT_BINARY_DIR} /RawToAcesConfig.cmake"
124
+ )
125
+
126
+ install (
127
+ EXPORT RawToAcesConfig
128
+ DESTINATION "${CMAKE_INSTALL_LIBDIR} /CMake/RawToAces"
129
+ NAMESPACE RawToAces::
130
+ )
131
+
130
132
install (DIRECTORY data DESTINATION ${CMAKE_INSTALL_DATADIR} /rawtoaces)
131
133
endif ()
132
134
Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
- git clone https://github.com/ampas/aces_container.git aces_container
5
+ git clone https://github.com/ampas/aces_container.git ../ aces_container
6
6
7
7
if [[ " $OSTYPE " == " linux-gnu" * ]] || [[ " $OSTYPE " == " darwin" * ]]; then
8
8
cmake \
9
- -S aces_container \
10
- -B aces_container/build \
9
+ -S ../ aces_container \
10
+ -B ../ aces_container/build \
11
11
-DCMAKE_CXX_FLAGS=" -Wno-c++11-narrowing"
12
- cmake --build aces_container/build
13
- sudo cmake --install aces_container/build
12
+ cmake --build ../ aces_container/build
13
+ sudo cmake --install ../ aces_container/build
14
14
else
15
15
cmake \
16
- -S aces_container \
17
- -B aces_container/build \
18
- -DCMAKE_INSTALL_PREFIX=" ." \
16
+ -S ../ aces_container \
17
+ -B ../ aces_container/build \
18
+ -DCMAKE_INSTALL_PREFIX=" ../AcesContainer " \
19
19
-DBUILD_SHARED_LIBS=OFF
20
- cmake --build aces_container/build --config Release
21
- cmake --install aces_container/build --config Release
20
+ cmake --build ../ aces_container/build --config Release
21
+ cmake --install ../ aces_container/build --config Release
22
22
fi
23
23
24
24
cd ../..
Original file line number Diff line number Diff line change 1
1
# Until we get some of these modules into the upstream packages, put them here
2
2
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR} /cmake/modules/" )
3
3
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_INSTALL_PREFIX} /share/CMake" )
4
-
4
+ set ( CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} " ${CMAKE_SOURCE_DIR} /../" )
5
5
6
6
find_package ( OpenImageIO CONFIG REQUIRED )
7
7
find_package ( AcesContainer CONFIG REQUIRED )
Original file line number Diff line number Diff line change @@ -7,16 +7,9 @@ add_executable( rawtoaces
7
7
8
8
set_property (TARGET rawtoaces PROPERTY CXX_STANDARD 17)
9
9
10
- target_include_directories ( rawtoaces
11
- PUBLIC
12
- ${AcesContainer_INCLUDE_DIRS}
13
- )
14
-
15
10
target_link_libraries ( rawtoaces
16
11
PUBLIC
17
12
${RAWTOACESLIB}
18
- INTERFACE
19
- Boost::headers
20
13
)
21
14
22
15
if ( LIBRAW_CONFIG_FOUND )
Original file line number Diff line number Diff line change @@ -13,15 +13,19 @@ add_library( ${RAWTOACESIDTLIB} ${DO_SHARED}
13
13
14
14
set_property (TARGET ${RAWTOACESIDTLIB} PROPERTY CXX_STANDARD 17)
15
15
16
+ # Eigen is also used in rawtoaces_util and rawtoaces_util2, so setting it public here
16
17
target_link_libraries (
17
18
${RAWTOACESIDTLIB}
19
+ PUBLIC
20
+ Eigen3::Eigen
18
21
PRIVATE
19
22
Boost::boost
20
23
Boost::system
21
24
Imath::Imath
22
25
Imath::ImathConfig
23
26
)
24
27
28
+ # Ceres is also used in rawtoaces_util and rawtoaces_util2, so setting it public here
25
29
if ( ${Ceres_VERSION_MAJOR} GREATER 1 )
26
30
target_link_libraries ( ${RAWTOACESIDTLIB} PUBLIC Ceres::ceres )
27
31
else ()
Original file line number Diff line number Diff line change @@ -10,29 +10,27 @@ add_library ( ${RAWTOACESLIB} ${DO_SHARED}
10
10
11
11
set_property (TARGET ${RAWTOACESLIB} PROPERTY CXX_STANDARD 17)
12
12
13
- if ( AcesContainer_FOUND )
14
- target_include_directories ( ${RAWTOACESLIB} PRIVATE ${AcesContainer_INCLUDE_DIRS} )
15
- target_link_directories ( ${RAWTOACESLIB} PUBLIC ${AcesContainer_LIBRARY_DIRS} )
16
- target_link_libraries ( ${RAWTOACESLIB}
17
- PRIVATE
18
- ${AcesContainer_LIBRARIES}
19
- ${AcesContainer_LDFLAGS_OTHER}
20
- )
21
- endif ()
13
+ target_include_directories ( ${RAWTOACESLIB} PRIVATE ${AcesContainer_INCLUDE_DIRS} )
14
+ target_link_directories ( ${RAWTOACESLIB} PUBLIC ${AcesContainer_LIBRARY_DIRS} )
15
+ target_link_libraries ( ${RAWTOACESLIB}
16
+ PUBLIC
17
+ ${AcesContainer_LIBRARIES}
18
+ ${AcesContainer_LDFLAGS_OTHER}
19
+ )
22
20
23
21
target_link_libraries ( ${RAWTOACESLIB}
24
22
PUBLIC
25
23
${RAWTOACESIDTLIB}
24
+ PRIVATE
26
25
Boost::filesystem
27
- INTERFACE
28
- Eigen3::Eigen
29
26
Imath::Imath
30
27
Imath::ImathConfig
31
28
)
32
29
33
30
if ( LIBRAW_CONFIG_FOUND )
34
31
target_link_libraries ( ${RAWTOACESLIB} PUBLIC libraw::raw )
35
32
else ()
33
+ target_include_directories (${RAWTOACESLIB} PUBLIC ${libraw_INCLUDE_DIR} /..)
36
34
target_link_directories (${RAWTOACESLIB} PUBLIC ${libraw_LIBRARY_DIRS} )
37
35
target_link_libraries (${RAWTOACESLIB} PUBLIC ${libraw_LIBRARIES} ${libraw_LDFLAGS_OTHER} )
38
36
endif ()
You can’t perform that action at this time.
0 commit comments