Skip to content

Commit

Permalink
Remove macro, improve documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Rémi Achard <remiachard@gmail.com>
  • Loading branch information
remia committed May 5, 2021
1 parent b173d4e commit 393a89a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 33 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,6 @@ endif()
include(FindExtPackages)


###############################################################################
# Target definition utilities
# This includes the install_targets macro, to make target available for
# import by external projects.

include(TargetUtils)


###############################################################################
# Progress to other sources

Expand Down Expand Up @@ -277,6 +269,8 @@ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ocio/${OCIO_SETUP_NAME} DESTINAT

###############################################################################
# Generate OpenColorIO-config.cmake
# Targets exported to ${PROJECT_NAME}_EXPORTED_TARGETS will be available for
# import using find_package(OpenColorIO).

include(CMakePackageConfigHelpers)

Expand Down
4 changes: 3 additions & 1 deletion include/OpenColorIO/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ list(APPEND core_export_headers ${CMAKE_CURRENT_BINARY_DIR}/OpenColorABI.h)
install(FILES ${core_export_headers}
DESTINATION include/OpenColorIO)

install_targets(OpenColorIOHeaders)
install(TARGETS OpenColorIOHeaders
EXPORT ${PROJECT_NAME}_EXPORTED_TARGETS
)
22 changes: 0 additions & 22 deletions share/cmake/macros/TargetUtils.cmake

This file was deleted.

3 changes: 1 addition & 2 deletions src/OpenColorIO/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,8 @@ if(MSVC AND BUILD_SHARED_LIBS)
endif()

install(TARGETS OpenColorIO
EXPORT ${PROJECT_NAME}_EXPORTED_TARGETS
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib
)

install_targets(OpenColorIO)

0 comments on commit 393a89a

Please sign in to comment.