Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
camtron
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kr69sugu
camtron
Commits
56481e1e
Commit
56481e1e
authored
6 years ago
by
andrewssobral
Committed by
Andrews Sobral
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updated cmakefile
parent
e2a9a7e0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+10
-1
10 additions, 1 deletion
CMakeLists.txt
with
10 additions
and
1 deletion
CMakeLists.txt
+
10
−
1
View file @
56481e1e
...
@@ -8,6 +8,7 @@ if(NOT DEFINED BGS_PYTHON_SUPPORT)
...
@@ -8,6 +8,7 @@ if(NOT DEFINED BGS_PYTHON_SUPPORT)
elseif
()
elseif
()
# add_definitions(-DBGS_PYTHON_SUPPORT)
# add_definitions(-DBGS_PYTHON_SUPPORT)
endif
()
endif
()
message
(
STATUS
""
)
message
(
STATUS
"BGSLIBRARY WITH PYTHON SUPPORT:
${
BGS_PYTHON_SUPPORT
}
"
)
message
(
STATUS
"BGSLIBRARY WITH PYTHON SUPPORT:
${
BGS_PYTHON_SUPPORT
}
"
)
# cmake -D BGS_PYTHON_SUPPORT=ON -D BGS_PYTHON_VERSION=3 ..
# cmake -D BGS_PYTHON_SUPPORT=ON -D BGS_PYTHON_VERSION=3 ..
...
@@ -73,10 +74,12 @@ endif(UNIX)
...
@@ -73,10 +74,12 @@ endif(UNIX)
set
(
OpenCV_STATIC OFF
)
set
(
OpenCV_STATIC OFF
)
find_package
(
OpenCV REQUIRED
)
find_package
(
OpenCV REQUIRED
)
if
(
OpenCV_FOUND
)
if
(
OpenCV_FOUND
)
message
(
STATUS
""
)
message
(
STATUS
"OpenCV library status:"
)
message
(
STATUS
"OpenCV library status:"
)
message
(
STATUS
" version:
${
OpenCV_VERSION
}
"
)
message
(
STATUS
" version:
${
OpenCV_VERSION
}
"
)
message
(
STATUS
" libraries:
${
OpenCV_LIBS
}
"
)
message
(
STATUS
" libraries:
${
OpenCV_LIBS
}
"
)
message
(
STATUS
" include path:
${
OpenCV_INCLUDE_DIRS
}
"
)
message
(
STATUS
" include path:
${
OpenCV_INCLUDE_DIRS
}
"
)
message
(
STATUS
""
)
endif
()
endif
()
# if(${OpenCV_VERSION} VERSION_EQUAL 3 OR ${OpenCV_VERSION} VERSION_GREATER 3)
# if(${OpenCV_VERSION} VERSION_EQUAL 3 OR ${OpenCV_VERSION} VERSION_GREATER 3)
...
@@ -123,13 +126,14 @@ if(BGS_PYTHON_SUPPORT)
...
@@ -123,13 +126,14 @@ if(BGS_PYTHON_SUPPORT)
#message(STATUS " libraries: ${Boost_LIBRARIES}")
#message(STATUS " libraries: ${Boost_LIBRARIES}")
#message(STATUS " include path: ${Boost_INCLUDE_DIRS}")
#message(STATUS " include path: ${Boost_INCLUDE_DIRS}")
message
(
STATUS
""
)
message
(
STATUS
"Python library status:"
)
message
(
STATUS
"Python library status:"
)
message
(
STATUS
" executable:
${
PYTHON_EXECUTABLE
}
"
)
message
(
STATUS
" executable:
${
PYTHON_EXECUTABLE
}
"
)
#message(STATUS " version: ${PYTHON_VERSION_STRING}")
#message(STATUS " version: ${PYTHON_VERSION_STRING}")
#message(STATUS " libraries: ${PYTHON_LIBRARIES}")
#message(STATUS " libraries: ${PYTHON_LIBRARIES}")
message
(
STATUS
" library:
${
PYTHON_LIBRARY
}
"
)
message
(
STATUS
" library:
${
PYTHON_LIBRARY
}
"
)
message
(
STATUS
" include path:
${
PYTHON_INCLUDE_DIRS
}
"
)
message
(
STATUS
" include path:
${
PYTHON_INCLUDE_DIRS
}
"
)
if
(
NOT NUMPY_INCLUDE_DIR
)
if
(
NOT NUMPY_INCLUDE_DIR
)
# message(FATAL_ERROR "You must define NUMPY_INCLUDE_DIR by 'cmake -D NUMPY_INCLUDE_DIR=/python/lib/site-packages/numpy/core/include ..'")
# message(FATAL_ERROR "You must define NUMPY_INCLUDE_DIR by 'cmake -D NUMPY_INCLUDE_DIR=/python/lib/site-packages/numpy/core/include ..'")
exec_program
(
"
${
PYTHON_EXECUTABLE
}
"
exec_program
(
"
${
PYTHON_EXECUTABLE
}
"
...
@@ -138,6 +142,7 @@ if(BGS_PYTHON_SUPPORT)
...
@@ -138,6 +142,7 @@ if(BGS_PYTHON_SUPPORT)
RETURN_VALUE NUMPY_NOT_FOUND
)
RETURN_VALUE NUMPY_NOT_FOUND
)
endif
()
endif
()
message
(
STATUS
"NUMPY_INCLUDE_DIR:
${
NUMPY_INCLUDE_DIR
}
"
)
message
(
STATUS
"NUMPY_INCLUDE_DIR:
${
NUMPY_INCLUDE_DIR
}
"
)
message
(
STATUS
""
)
endif
()
endif
()
file
(
GLOB main Main.cpp FrameProcessor.cpp PreProcessor.cpp VideoAnalysis.cpp VideoCapture.cpp
)
file
(
GLOB main Main.cpp FrameProcessor.cpp PreProcessor.cpp VideoAnalysis.cpp VideoCapture.cpp
)
...
@@ -224,7 +229,10 @@ if(BGS_PYTHON_SUPPORT)
...
@@ -224,7 +229,10 @@ if(BGS_PYTHON_SUPPORT)
OUTPUT_VARIABLE PYTHON_SITE
OUTPUT_VARIABLE PYTHON_SITE
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
)
message
(
STATUS
"bgslibrary python package will be installed at:
${
PYTHON_SITE
}
"
)
message
(
STATUS
"bgslibrary python package will be installed at:
${
PYTHON_SITE
}
"
)
message
(
STATUS
""
)
install
(
TARGETS bgs_python DESTINATION
${
PYTHON_SITE
}
)
install
(
TARGETS bgs_python DESTINATION
${
PYTHON_SITE
}
)
#install(FILES ${mypackage_python_files} DESTINATION ${PYTHON_SITE}/mypackage)
#install(FILES ${mypackage_python_files} DESTINATION ${PYTHON_SITE}/mypackage)
#install(TARGETS bgs_python DESTINATION ${CMAKE_CURRENT_SOURCE_DIR})
#install(TARGETS bgs_python DESTINATION ${CMAKE_CURRENT_SOURCE_DIR})
...
@@ -243,3 +251,4 @@ install(TARGETS bgslibrary_core
...
@@ -243,3 +251,4 @@ install(TARGETS bgslibrary_core
message
(
STATUS
"After make install, run:"
)
message
(
STATUS
"After make install, run:"
)
message
(
STATUS
"$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib"
)
message
(
STATUS
"$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib"
)
message
(
STATUS
"$ export LD_LIBRARY_PATH"
)
message
(
STATUS
"$ export LD_LIBRARY_PATH"
)
message
(
STATUS
""
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment