Skip to content

Commit

Permalink
fix 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 12, 2025
1 parent f91a3b8 commit 8e4d99d
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ else ()
set ( DO_SHARED STATIC )
endif ()

include ( GNUInstallDirs )
include ( configure.cmake )


Expand Down Expand Up @@ -98,25 +97,6 @@ install( FILES



install(
TARGETS rawtoaces_idt rawtoaces_util rawtoaces_util2 rawtoaces
EXPORT RawToAcesConfig
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

export(
TARGETS rawtoaces_idt rawtoaces_util rawtoaces_util2 rawtoaces
NAMESPACE RawToAces::
FILE "${CMAKE_CURRENT_BINARY_DIR}/RawToAcesConfig.cmake"
)

install(
EXPORT RawToAcesConfig
DESTINATION "${CMAKE_INSTALL_LIBDIR}/CMake/RawToAces"
NAMESPACE RawToAces::
)



Expand All @@ -127,6 +107,28 @@ install( FILES "${PROJECT_BINARY_DIR}/RAWTOACESLibraryDepends.cmake" DESTINATION
endif( )

if ( APPLE OR UNIX )
include ( GNUInstallDirs )

install(
TARGETS rawtoaces_idt rawtoaces_util rawtoaces_util2 rawtoaces
EXPORT RawToAcesConfig
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

export(
TARGETS rawtoaces_idt rawtoaces_util rawtoaces_util2 rawtoaces
NAMESPACE RawToAces::
FILE "${CMAKE_CURRENT_BINARY_DIR}/RawToAcesConfig.cmake"
)

install(
EXPORT RawToAcesConfig
DESTINATION "${CMAKE_INSTALL_LIBDIR}/CMake/RawToAces"
NAMESPACE RawToAces::
)

install (DIRECTORY data DESTINATION ${CMAKE_INSTALL_DATADIR}/rawtoaces)
endif()

Expand Down

0 comments on commit 8e4d99d

Please sign in to comment.