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
e246604d
Commit
e246604d
authored
7 years ago
by
Andrews Sobral
Browse files
Options
Downloads
Patches
Plain Diff
Replace tabs with spaces
parent
ace34375
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+93
-92
93 additions, 92 deletions
CMakeLists.txt
gui_qt/CMakeLists.txt
+22
-15
22 additions, 15 deletions
gui_qt/CMakeLists.txt
with
115 additions
and
107 deletions
CMakeLists.txt
+
93
−
92
View file @
e246604d
...
@@ -4,21 +4,21 @@ project(bgslibrary)
...
@@ -4,21 +4,21 @@ project(bgslibrary)
# cmake -D BGS_PYTHON_SUPPORT=ON ..
# cmake -D BGS_PYTHON_SUPPORT=ON ..
if
(
NOT DEFINED BGS_PYTHON_SUPPORT
)
if
(
NOT DEFINED BGS_PYTHON_SUPPORT
)
set
(
BGS_PYTHON_SUPPORT OFF
)
set
(
BGS_PYTHON_SUPPORT OFF
)
elseif
()
elseif
()
# add_definitions(-DBGS_PYTHON_SUPPORT)
# add_definitions(-DBGS_PYTHON_SUPPORT)
endif
()
endif
()
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=2 ..
# cmake -D BGS_PYTHON_SUPPORT=ON -D BGS_PYTHON_VERSION=2 ..
if
(
NOT DEFINED BGS_PYTHON_VERSION
)
if
(
NOT DEFINED BGS_PYTHON_VERSION
)
set
(
BGS_PYTHON_VERSION 2
)
set
(
BGS_PYTHON_VERSION 2
)
endif
()
endif
()
message
(
STATUS
"PYTHON VERSION:
${
BGS_PYTHON_VERSION
}
"
)
message
(
STATUS
"PYTHON VERSION:
${
BGS_PYTHON_VERSION
}
"
)
if
(
UNIX
)
if
(
UNIX
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=gnu++0x"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=gnu++0x"
)
set
(
CMAKE_MACOSX_RPATH 1
)
set
(
CMAKE_MACOSX_RPATH 1
)
endif
(
UNIX
)
endif
(
UNIX
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-std=c99"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-std=c99"
)
...
@@ -29,12 +29,12 @@ set(CMAKE_BUILD_TYPE Release)
...
@@ -29,12 +29,12 @@ set(CMAKE_BUILD_TYPE Release)
#set(CMAKE_BUILD_TYPE Debug)
#set(CMAKE_BUILD_TYPE Debug)
if
(
WIN32
)
if
(
WIN32
)
if
(
BGS_PYTHON_SUPPORT
)
if
(
BGS_PYTHON_SUPPORT
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
/MD"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
/MD"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
/MDd"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
/MDd"
)
else
()
else
()
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
/MT"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
/MT"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
/MTd"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
/MTd"
)
endif
()
endif
()
endif
(
WIN32
)
endif
(
WIN32
)
...
@@ -45,78 +45,79 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${bgs_out_dir})
...
@@ -45,78 +45,79 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${bgs_out_dir})
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${
bgs_out_dir
}
)
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${
bgs_out_dir
}
)
# Second, for multi-config builds (e.g. msvc)
# Second, for multi-config builds (e.g. msvc)
foreach
(
OUTPUTCONFIG
${
CMAKE_CONFIGURATION_TYPES
}
)
foreach
(
OUTPUTCONFIG
${
CMAKE_CONFIGURATION_TYPES
}
)
string
(
TOUPPER
${
OUTPUTCONFIG
}
OUTPUTCONFIG
)
string
(
TOUPPER
${
OUTPUTCONFIG
}
OUTPUTCONFIG
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY_
${
OUTPUTCONFIG
}
${
bgs_out_dir
}
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY_
${
OUTPUTCONFIG
}
${
bgs_out_dir
}
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY_
${
OUTPUTCONFIG
}
${
bgs_out_dir
}
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY_
${
OUTPUTCONFIG
}
${
bgs_out_dir
}
)
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY_
${
OUTPUTCONFIG
}
${
bgs_out_dir
}
)
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY_
${
OUTPUTCONFIG
}
${
bgs_out_dir
}
)
endforeach
(
OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES
)
endforeach
(
OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES
)
if
(
UNIX
)
if
(
UNIX
)
# add some standard warnings
# add some standard warnings
ADD_DEFINITIONS
(
-Wno-variadic-macros -Wno-long-long -Wall -Wextra -Winit-self -Woverloaded-virtual -Wsign-promo -Wno-unused-parameter -pedantic -Woverloaded-virtual -Wno-unknown-pragmas
)
ADD_DEFINITIONS
(
-Wno-variadic-macros -Wno-long-long -Wall -Wextra -Winit-self -Woverloaded-virtual -Wsign-promo -Wno-unused-parameter -pedantic -Woverloaded-virtual -Wno-unknown-pragmas
)
# -ansi does not compile with sjn module
# -ansi does not compile with sjn module
#ADD_DEFINITIONS(-ansi)
#ADD_DEFINITIONS(-ansi)
# if you like to have warinings about conversions, e.g. double->int or double->float etc., or float compare
# if you like to have warinings about conversions, e.g. double->int or double->float etc., or float compare
#ADD_DEFINITIONS(-Wconversion -Wfloat-equal)
#ADD_DEFINITIONS(-Wconversion -Wfloat-equal)
endif
(
UNIX
)
endif
(
UNIX
)
set
(
OpenCV_STATIC OFF
)
set
(
OpenCV_STATIC OFF
)
find_package
(
OpenCV REQUIRED
)
find_package
(
OpenCV REQUIRED
)
if
(
OpenCV_FOUND
)
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
}
"
)
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)
#
message(FATAL_ERROR "OpenCV version is not compatible: ${OpenCV_VERSION}")
#
message(FATAL_ERROR "OpenCV version is not compatible: ${OpenCV_VERSION}")
# endif()
# endif()
if
(
${
OpenCV_VERSION
}
VERSION_LESS 2.3.1
)
if
(
${
OpenCV_VERSION
}
VERSION_LESS 2.3.1
)
message
(
FATAL_ERROR
"OpenCV version is not compatible:
${
OpenCV_VERSION
}
"
)
message
(
FATAL_ERROR
"OpenCV version is not compatible:
${
OpenCV_VERSION
}
"
)
endif
()
endif
()
if
(
BGS_PYTHON_SUPPORT
)
if
(
BGS_PYTHON_SUPPORT
)
if
(
WIN32
)
if
(
WIN32
)
set
(
Boost_USE_STATIC_LIBS ON
)
set
(
Boost_USE_STATIC_LIBS ON
)
else
()
else
()
set
(
Boost_USE_STATIC_LIBS OFF
)
set
(
Boost_USE_STATIC_LIBS OFF
)
endif
()
endif
()
set
(
Boost_USE_MULTITHREADED ON
)
set
(
Boost_USE_MULTITHREADED ON
)
set
(
Boost_USE_STATIC_RUNTIME OFF
)
set
(
Boost_USE_STATIC_RUNTIME OFF
)
message
(
STATUS
"SEARCHING FOR BOOST COMPONENT FOR PYTHON
${
BGS_PYTHON_VERSION
}
"
)
message
(
STATUS
"SEARCHING FOR BOOST COMPONENT FOR PYTHON
${
BGS_PYTHON_VERSION
}
"
)
if
(
BGS_PYTHON_VERSION EQUAL 2
)
if
(
BGS_PYTHON_VERSION EQUAL 2
)
find_package
(
Boost REQUIRED COMPONENTS python
)
find_package
(
Boost REQUIRED COMPONENTS python
)
else
()
else
()
find_package
(
Boost REQUIRED COMPONENTS python3
)
find_package
(
Boost REQUIRED COMPONENTS python3
)
endif
()
endif
()
find_package
(
PythonInterp REQUIRED
)
find_package
(
PythonInterp REQUIRED
)
find_package
(
PythonLibs REQUIRED
)
find_package
(
PythonLibs REQUIRED
)
message
(
STATUS
"Boost library status:"
)
message
(
STATUS
"Boost library status:"
)
message
(
STATUS
" version:
${
Boost_VERSION
}
"
)
message
(
STATUS
" version:
${
Boost_VERSION
}
"
)
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
"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
}
"
ARGS
"-c
\"
import numpy; print(numpy.get_include())
\"
"
ARGS
"-c
\"
import numpy; print(numpy.get_include())
\"
"
OUTPUT_VARIABLE NUMPY_INCLUDE_DIR
OUTPUT_VARIABLE NUMPY_INCLUDE_DIR
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
}
"
)
endif
()
endif
()
#file(GLOB sources FrameProcessor.cpp PreProcessor.cpp VideoAnalysis.cpp VideoCapture.cpp)
#file(GLOB sources FrameProcessor.cpp PreProcessor.cpp VideoAnalysis.cpp VideoCapture.cpp)
...
@@ -128,40 +129,40 @@ file(GLOB demo2 Demo2.cpp)
...
@@ -128,40 +129,40 @@ file(GLOB demo2 Demo2.cpp)
file
(
GLOB_RECURSE analysis_src package_analysis/*.cpp
)
file
(
GLOB_RECURSE analysis_src package_analysis/*.cpp
)
if
(
BGS_PYTHON_SUPPORT
)
if
(
BGS_PYTHON_SUPPORT
)
file
(
GLOB_RECURSE bgs_src package_bgs/*.cpp package_bgs/*.c wrapper_python/*.cpp
)
file
(
GLOB_RECURSE bgs_src package_bgs/*.cpp package_bgs/*.c wrapper_python/*.cpp
)
file
(
GLOB_RECURSE bgs_include package_bgs/*.h wrapper_python/*.h
)
file
(
GLOB_RECURSE bgs_include package_bgs/*.h wrapper_python/*.h
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
${
OpenCV_INCLUDE_DIRS
}
${
Boost_INCLUDE_DIRS
}
${
PYTHON_INCLUDE_DIRS
}
${
NUMPY_INCLUDE_DIR
}
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
${
OpenCV_INCLUDE_DIRS
}
${
Boost_INCLUDE_DIRS
}
${
PYTHON_INCLUDE_DIRS
}
${
NUMPY_INCLUDE_DIR
}
)
else
()
else
()
file
(
GLOB_RECURSE bgs_src package_bgs/*.cpp package_bgs/*.c
)
file
(
GLOB_RECURSE bgs_src package_bgs/*.cpp package_bgs/*.c
)
file
(
GLOB_RECURSE bgs_include package_bgs/*.h
)
file
(
GLOB_RECURSE bgs_include package_bgs/*.h
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
${
OpenCV_INCLUDE_DIRS
}
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
${
OpenCV_INCLUDE_DIRS
}
)
endif
()
endif
()
# GMG is not available in older OpenCV versions
# GMG is not available in older OpenCV versions
if
(
${
OpenCV_VERSION
}
VERSION_LESS 2.4.3
)
if
(
${
OpenCV_VERSION
}
VERSION_LESS 2.4.3
)
file
(
GLOB gmg package_bgs/GMG.cpp
)
file
(
GLOB gmg package_bgs/GMG.cpp
)
list
(
REMOVE_ITEM bgs_src
${
gmg
}
)
list
(
REMOVE_ITEM bgs_src
${
gmg
}
)
endif
()
endif
()
if
(
BGS_PYTHON_SUPPORT
)
if
(
BGS_PYTHON_SUPPORT
)
#add_library(libbgs SHARED ${sources} ${bgs_src} ${analysis_src})
#add_library(libbgs SHARED ${sources} ${bgs_src} ${analysis_src})
add_library
(
libbgs SHARED
${
bgs_src
}
${
analysis_src
}
)
add_library
(
libbgs SHARED
${
bgs_src
}
${
analysis_src
}
)
target_link_libraries
(
libbgs
${
OpenCV_LIBS
}
${
Boost_LIBRARIES
}
${
PYTHON_LIBRARY
}
)
target_link_libraries
(
libbgs
${
OpenCV_LIBS
}
${
Boost_LIBRARIES
}
${
PYTHON_LIBRARY
}
)
target_compile_definitions
(
libbgs PRIVATE BGS_PYTHON_SUPPORT=1
)
target_compile_definitions
(
libbgs PRIVATE BGS_PYTHON_SUPPORT=1
)
else
()
else
()
#add_library(libbgs STATIC ${sources} ${bgs_src} ${analysis_src})
#add_library(libbgs STATIC ${sources} ${bgs_src} ${analysis_src})
add_library
(
libbgs STATIC
${
bgs_src
}
${
analysis_src
}
)
add_library
(
libbgs STATIC
${
bgs_src
}
${
analysis_src
}
)
target_link_libraries
(
libbgs
${
OpenCV_LIBS
}
)
target_link_libraries
(
libbgs
${
OpenCV_LIBS
}
)
endif
()
endif
()
set_property
(
TARGET libbgs PROPERTY PUBLIC_HEADER
${
bgs_include
}
)
set_property
(
TARGET libbgs PROPERTY PUBLIC_HEADER
${
bgs_include
}
)
if
(
WIN32
)
if
(
WIN32
)
# set_property(TARGET libbgs PROPERTY SUFFIX ".lib")
# set_property(TARGET libbgs PROPERTY SUFFIX ".lib")
if
(
BGS_PYTHON_SUPPORT
)
if
(
BGS_PYTHON_SUPPORT
)
set_property
(
TARGET libbgs PROPERTY SUFFIX
".pyd"
)
set_property
(
TARGET libbgs PROPERTY SUFFIX
".pyd"
)
endif
()
endif
()
else
()
else
()
set_property
(
TARGET libbgs PROPERTY OUTPUT_NAME
"bgs"
)
set_property
(
TARGET libbgs PROPERTY OUTPUT_NAME
"bgs"
)
endif
()
endif
()
if
(
NOT BGS_PYTHON_SUPPORT
)
if
(
NOT BGS_PYTHON_SUPPORT
)
...
@@ -176,11 +177,11 @@ add_executable(bgs_demo2 ${demo2})
...
@@ -176,11 +177,11 @@ add_executable(bgs_demo2 ${demo2})
target_link_libraries
(
bgs_demo2
${
OpenCV_LIBS
}
libbgs
)
target_link_libraries
(
bgs_demo2
${
OpenCV_LIBS
}
libbgs
)
install
(
TARGETS libbgs
install
(
TARGETS libbgs
bgslibrary
bgslibrary
RUNTIME DESTINATION bin COMPONENT app
RUNTIME DESTINATION bin COMPONENT app
LIBRARY DESTINATION lib COMPONENT runtime
LIBRARY DESTINATION lib COMPONENT runtime
ARCHIVE DESTINATION lib COMPONENT runtime
ARCHIVE DESTINATION lib COMPONENT runtime
PUBLIC_HEADER DESTINATION include/package_bgs COMPONENT dev
PUBLIC_HEADER DESTINATION include/package_bgs COMPONENT dev
FRAMEWORK DESTINATION
"/Library/Frameworks"
FRAMEWORK DESTINATION
"/Library/Frameworks"
)
)
endif
()
endif
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
gui_qt/CMakeLists.txt
+
22
−
15
View file @
e246604d
...
@@ -3,17 +3,17 @@ cmake_minimum_required(VERSION 2.8.11)
...
@@ -3,17 +3,17 @@ cmake_minimum_required(VERSION 2.8.11)
project
(
bgslibrary_gui
)
project
(
bgslibrary_gui
)
if
(
UNIX
)
if
(
UNIX
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=gnu++0x"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=gnu++0x"
)
set
(
CMAKE_MACOSX_RPATH 1
)
set
(
CMAKE_MACOSX_RPATH 1
)
# add some standard warnings
# add some standard warnings
ADD_DEFINITIONS
(
-Wno-variadic-macros -Wno-long-long -Wall -Wextra -Winit-self -Woverloaded-virtual -Wsign-promo -Wno-unused-parameter -pedantic -Woverloaded-virtual -Wno-unknown-pragmas
)
ADD_DEFINITIONS
(
-Wno-variadic-macros -Wno-long-long -Wall -Wextra -Winit-self -Woverloaded-virtual -Wsign-promo -Wno-unused-parameter -pedantic -Woverloaded-virtual -Wno-unknown-pragmas
)
# -ansi does not compile with sjn module
# -ansi does not compile with sjn module
#ADD_DEFINITIONS(-ansi)
#ADD_DEFINITIONS(-ansi)
# if you like to have warinings about conversions, e.g. double->int or double->float etc., or float compare
# if you like to have warinings about conversions, e.g. double->int or double->float etc., or float compare
#ADD_DEFINITIONS(-Wconversion -Wfloat-equal)
#ADD_DEFINITIONS(-Wconversion -Wfloat-equal)
endif
(
UNIX
)
endif
(
UNIX
)
# Find includes in corresponding build directories
# Find includes in corresponding build directories
...
@@ -27,6 +27,12 @@ set(CMAKE_AUTOUIC ON)
...
@@ -27,6 +27,12 @@ set(CMAKE_AUTOUIC ON)
# Find the Qt5Widgets library
# Find the Qt5Widgets library
find_package
(
Qt5Widgets
)
find_package
(
Qt5Widgets
)
if
(
Qt5Widgets_FOUND
)
message
(
STATUS
"Qt5Widgets status:"
)
message
(
STATUS
" version:
${
Qt5Widgets_VERSION
}
"
)
message
(
STATUS
" libraries:
${
Qt5Widgets_LIBRARIES
}
"
)
message
(
STATUS
" include path:
${
Qt5Widgets_INCLUDE_DIRS
}
"
)
endif
()
SET
(
app_RESOURCES application.qrc
)
SET
(
app_RESOURCES application.qrc
)
QT5_ADD_RESOURCES
(
app_RESOURCES_RCC
${
app_RESOURCES
}
)
QT5_ADD_RESOURCES
(
app_RESOURCES_RCC
${
app_RESOURCES
}
)
...
@@ -34,11 +40,12 @@ QT5_ADD_RESOURCES(app_RESOURCES_RCC ${app_RESOURCES})
...
@@ -34,11 +40,12 @@ QT5_ADD_RESOURCES(app_RESOURCES_RCC ${app_RESOURCES})
# Find the OpenCV library
# Find the OpenCV library
set
(
OpenCV_STATIC OFF
)
set
(
OpenCV_STATIC OFF
)
find_package
(
OpenCV REQUIRED
)
find_package
(
OpenCV REQUIRED
)
if
(
OpenCV_FOUND
)
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
}
"
)
endif
()
file
(
GLOB main bgslibrary_gui.cpp mainwindow.cpp qt_utils.cpp texteditor.cpp
)
file
(
GLOB main bgslibrary_gui.cpp mainwindow.cpp qt_utils.cpp texteditor.cpp
)
...
@@ -54,9 +61,9 @@ target_link_libraries(libbgs ${OpenCV_LIBS})
...
@@ -54,9 +61,9 @@ target_link_libraries(libbgs ${OpenCV_LIBS})
set_property
(
TARGET libbgs PROPERTY PUBLIC_HEADER
${
bgs_inc
}
${
analysis_inc
}
)
set_property
(
TARGET libbgs PROPERTY PUBLIC_HEADER
${
bgs_inc
}
${
analysis_inc
}
)
if
(
WIN32
)
if
(
WIN32
)
# set_property(TARGET libbgs PROPERTY SUFFIX ".lib")
# set_property(TARGET libbgs PROPERTY SUFFIX ".lib")
else
()
else
()
set_property
(
TARGET libbgs PROPERTY OUTPUT_NAME
"bgs"
)
set_property
(
TARGET libbgs PROPERTY OUTPUT_NAME
"bgs"
)
endif
()
endif
()
# Tell CMake to create the bgslibrary_gui executable
# Tell CMake to create the bgslibrary_gui executable
...
...
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