Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
baa592b2
Unverified
Commit
baa592b2
authored
Aug 21, 2020
by
vcarpani
Committed by
GitHub
Aug 21, 2020
Browse files
Use include_directories. (#2587)
parent
0fab5329
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
CMakeLists.txt
CMakeLists.txt
+1
-4
No files found.
CMakeLists.txt
View file @
baa592b2
...
@@ -34,10 +34,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE ${TORCH_LIBRARIES} ${PNG_LIBRARY}
...
@@ -34,10 +34,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE ${TORCH_LIBRARIES} ${PNG_LIBRARY}
# target_link_libraries(${PROJECT_NAME} PRIVATE ${PNG_LIBRARY} Python3::Python)
# target_link_libraries(${PROJECT_NAME} PRIVATE ${PNG_LIBRARY} Python3::Python)
set_target_properties
(
${
PROJECT_NAME
}
PROPERTIES EXPORT_NAME TorchVision
)
set_target_properties
(
${
PROJECT_NAME
}
PROPERTIES EXPORT_NAME TorchVision
)
target_include_directories
(
${
PROJECT_NAME
}
INTERFACE
include_directories
(
torchvision/csrc
)
$<BUILD_INTERFACE:
${
HEADERS
}
:
${
PNG_INCLUDE_DIR
}
:
${
JPEG_INCLUDE_DIRS
}
>
$<INSTALL_INTERFACE:
${
CMAKE_INSTALL_INCLUDEDIR
}
>
)
include
(
GNUInstallDirs
)
include
(
GNUInstallDirs
)
include
(
CMakePackageConfigHelpers
)
include
(
CMakePackageConfigHelpers
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment