Skip to content

Commit

Permalink
Use include_directories. (#2587)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcarpani authored Aug 21, 2020
1 parent 0fab532 commit baa592b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE ${TORCH_LIBRARIES} ${PNG_LIBRARY}
# target_link_libraries(${PROJECT_NAME} PRIVATE ${PNG_LIBRARY} Python3::Python)
set_target_properties(${PROJECT_NAME} PROPERTIES EXPORT_NAME TorchVision)

target_include_directories(${PROJECT_NAME} INTERFACE
$<BUILD_INTERFACE:${HEADERS}:${PNG_INCLUDE_DIR}:${JPEG_INCLUDE_DIRS}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)

include_directories(torchvision/csrc)
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)

Expand Down

0 comments on commit baa592b

Please sign in to comment.