Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_tracking
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
jfx_tracking
Commits
2d828d0e
Commit
2d828d0e
authored
Dec 16, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交cmake变动
parent
f3794ab0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
CMakeLists.txt
CMakeLists.txt
+18
-0
No files found.
CMakeLists.txt
View file @
2d828d0e
cmake_minimum_required
(
VERSION 3.0.2
)
cmake_minimum_required
(
VERSION 3.0.2
)
project
(
jfx_tracking
)
project
(
jfx_tracking
)
set
(
KF_CUDA OFF
)
add_definitions
(
-D_DEBUG
)
add_definitions
(
-D_DEBUG
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-g -O0"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-g -O0"
)
...
@@ -16,6 +17,7 @@ find_package(OpenCV REQUIRED)
...
@@ -16,6 +17,7 @@ find_package(OpenCV REQUIRED)
find_package
(
yaml-cpp REQUIRED
)
find_package
(
yaml-cpp REQUIRED
)
include_directories
(
${
YAML_CPP_INCLUDE_DIR
}
)
include_directories
(
${
YAML_CPP_INCLUDE_DIR
}
)
#find_package(CUDA REQUIRED)
#find_package(CUDA REQUIRED)
#if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
#if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
...
@@ -72,12 +74,24 @@ catkin_package(
...
@@ -72,12 +74,24 @@ catkin_package(
## Build ##
## Build ##
###########
###########
if
(
KF_CUDA
)
add_definitions
(
-D_KF_IOU_CUDA_
)
find_package
(
CUDA REQUIRED
)
include_directories
(
/usr/local/cuda/include
)
link_directories
(
/usr/local/cuda/lib64
)
set
(
CUDA_NVCC_PLAGS
${
CUDA_NVCC_PLAGS
}
;-std=c++11;-g;-G;-gencode;arch=compute_75;code=sm_75
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
/src/BaseTracker/kf_gpu
)
cuda_add_library
(
kf_cuda SHARED
${
PROJECT_SOURCE_DIR
}
/src/BaseTracker/bev_overlap_online.cu
${
PROJECT_SOURCE_DIR
}
/src/BaseTracker/kalman_batch_ops.cu
${
PROJECT_SOURCE_DIR
}
/src/BaseTracker/kalman_batch_ops.cu
)
target_link_libraries
(
kf_cuda cudart cublas
)
endif
include_directories
(
include_directories
(
/usr/local/include
/usr/local/include
src
src
src/tracker
src/tracker
src/BaseTracker
src/BaseTracker
src/BaseTracker/kf_gpu
src/log
src/log
src/common
src/common
src/coordinate
src/coordinate
...
@@ -121,6 +135,10 @@ target_link_libraries(${PROJECT_NAME}_node
...
@@ -121,6 +135,10 @@ target_link_libraries(${PROJECT_NAME}_node
yaml-cpp
yaml-cpp
)
)
if
(
KF_CUDA
)
target_link_libraries
(
${
PROJECT_NAME
}
_node kf_cuda
)
endif
#add_executable(cv_test
#add_executable(cv_test
# src/test.cpp
# src/test.cpp
# ${COORDINATE_SRC_FILES}
# ${COORDINATE_SRC_FILES}
...
...
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