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
575d7248
Commit
575d7248
authored
5 years ago
by
Andrews Sobral
Browse files
Options
Downloads
Patches
Plain Diff
Updated CMakeFile from examples
parent
68c52c8f
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
examples/CMakeLists.txt
+6
-4
6 additions, 4 deletions
examples/CMakeLists.txt
with
6 additions
and
4 deletions
examples/CMakeLists.txt
+
6
−
4
View file @
575d7248
...
@@ -79,9 +79,11 @@ endif()
...
@@ -79,9 +79,11 @@ endif()
file
(
GLOB demo Demo.cpp
)
file
(
GLOB demo Demo.cpp
)
file
(
GLOB demo2 Demo2.cpp
)
file
(
GLOB demo2 Demo2.cpp
)
file
(
GLOB_RECURSE analysis_src ../src/package_analysis/*.cpp
)
file
(
GLOB_RECURSE analysis_src ../src/package_analysis/*.cpp ../src/package_analysis/*.c
)
file
(
GLOB_RECURSE analysis_inc ../src/package_analysis/*.h ../src/package_analysis/*.hpp
)
file
(
GLOB_RECURSE bgs_src ../src/package_bgs/*.cpp ../src/package_bgs/*.c
)
file
(
GLOB_RECURSE bgs_src ../src/package_bgs/*.cpp ../src/package_bgs/*.c
)
file
(
GLOB_RECURSE bgs_inc
lude
../src/package_bgs/*.h
)
file
(
GLOB_RECURSE bgs_inc
../src/package_bgs/*.h
../src/package_bgs/*.h
pp
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
)
include_directories
(
${
OpenCV_INCLUDE_DIRS
}
)
include_directories
(
${
OpenCV_INCLUDE_DIRS
}
)
...
@@ -92,7 +94,7 @@ if(${OpenCV_VERSION} VERSION_LESS 2.4.3)
...
@@ -92,7 +94,7 @@ if(${OpenCV_VERSION} VERSION_LESS 2.4.3)
list
(
REMOVE_ITEM bgs_src
${
gmg
}
)
list
(
REMOVE_ITEM bgs_src
${
gmg
}
)
endif
()
endif
()
add_library
(
bgslibrary_core SHARED
${
bgs_src
}
${
analysis_src
}
)
add_library
(
bgslibrary_core SHARED
${
bgs_src
}
${
analysis_src
}
${
bgs_inc
}
${
analysis_inc
}
)
# generates the export header bgslibrary_core_EXPORTS.h automatically
# generates the export header bgslibrary_core_EXPORTS.h automatically
include
(
GenerateExportHeader
)
include
(
GenerateExportHeader
)
GENERATE_EXPORT_HEADER
(
bgslibrary_core
GENERATE_EXPORT_HEADER
(
bgslibrary_core
...
@@ -101,7 +103,7 @@ GENERATE_EXPORT_HEADER(bgslibrary_core
...
@@ -101,7 +103,7 @@ GENERATE_EXPORT_HEADER(bgslibrary_core
EXPORT_FILE_NAME bgslibrary_core_EXPORTS.h
EXPORT_FILE_NAME bgslibrary_core_EXPORTS.h
STATIC_DEFINE BGSLIBRARY_CORE_EXPORTS_BUILT_AS_STATIC
)
STATIC_DEFINE BGSLIBRARY_CORE_EXPORTS_BUILT_AS_STATIC
)
target_link_libraries
(
bgslibrary_core
${
OpenCV_LIBS
}
)
target_link_libraries
(
bgslibrary_core
${
OpenCV_LIBS
}
)
set_property
(
TARGET bgslibrary_core PROPERTY PUBLIC_HEADER
${
bgs_inc
lude
}
)
set_property
(
TARGET bgslibrary_core PROPERTY PUBLIC_HEADER
${
bgs_inc
}
${
analysis_inc
}
)
#if(WIN32)
#if(WIN32)
# # set_property(TARGET bgslibrary_core PROPERTY SUFFIX ".lib")
# # set_property(TARGET bgslibrary_core PROPERTY SUFFIX ".lib")
...
...
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