Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
submodule
opencv
Commits
41f5e8e3
Commit
41f5e8e3
authored
Apr 30, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed output paths for some libraries and executables.
Added option to force disable precompiled headers.
parent
c122b7e1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
8 deletions
+24
-8
CMakeLists.txt
CMakeLists.txt
+6
-0
OpenCVModule.cmake
OpenCVModule.cmake
+2
-2
OpenCVPCHSupport.cmake
OpenCVPCHSupport.cmake
+6
-5
CMakeLists.txt
modules/haartraining/CMakeLists.txt
+6
-0
CMakeLists.txt
modules/highgui/CMakeLists.txt
+1
-1
CMakeLists.txt
modules/traincascade/CMakeLists.txt
+3
-0
No files found.
CMakeLists.txt
View file @
41f5e8e3
...
...
@@ -230,6 +230,12 @@ endif()
include
(
OpenCVPCHSupport.cmake REQUIRED
)
include
(
OpenCVModule.cmake REQUIRED
)
if
(
PCHSupport_FOUND
)
SET
(
USE_PRECOMPILED_HEADERS ON CACHE BOOL
"Use precompiled headers"
)
else
()
SET
(
USE_PRECOMPILED_HEADERS OFF CACHE BOOL
"Use precompiled headers"
FORCE
)
endif
()
if
(
UNIX
)
include
(
OpenCVFindPkgConfig.cmake OPTIONAL
)
include
(
CheckFunctionExists
)
...
...
OpenCVModule.cmake
View file @
41f5e8e3
...
...
@@ -46,7 +46,7 @@ macro(define_opencv_module name)
INSTALL_NAME_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/lib"
)
if
(
PCHSupport_FOUND
)
if
(
PCHSupport_FOUND
AND USE_PRECOMPILED_HEADERS
)
set
(
pch_header
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/precomp.hpp
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual*"
OR
${
CMAKE_GENERATOR
}
MATCHES
"Xcode*"
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual*"
)
...
...
@@ -110,7 +110,7 @@ macro(define_opencv_module name)
add_executable
(
${
the_target
}
${
test_srcs
}
${
test_hdrs
}
)
if
(
PCHSupport_FOUND
)
if
(
PCHSupport_FOUND
AND USE_PRECOMPILED_HEADERS
)
set
(
pch_header
${
CMAKE_CURRENT_SOURCE_DIR
}
/test/test_precomp.hpp
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual*"
OR
${
CMAKE_GENERATOR
}
MATCHES
"Xcode*"
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual*"
)
...
...
OpenCVPCHSupport.cmake
View file @
41f5e8e3
...
...
@@ -34,11 +34,6 @@ ELSE()
ENDIF
()
ENDIF
(
CMAKE_COMPILER_IS_GNUCXX
)
#if (ANDROID)
#SET(PCHSupport_FOUND FALSE)
#endif()
MACRO
(
_PCH_GET_COMPILE_FLAGS _out_compile_flags
)
...
...
@@ -213,6 +208,12 @@ MACRO(ADD_PRECOMPILED_HEADER _targetName _input)
ELSE
(
${
_targetType
}
STREQUAL SHARED_LIBRARY
)
ADD_LIBRARY
(
${
_targetName
}
_pch_dephelp STATIC
${
_pch_dephelp_cxx
}
)
ENDIF
(
${
_targetType
}
STREQUAL SHARED_LIBRARY
)
set_target_properties
(
${
_targetName
}
_pch_dephelp PROPERTIES
DEBUG_POSTFIX
"
${
OPENCV_DEBUG_POSTFIX
}
"
ARCHIVE_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/lib/"
)
FILE
(
MAKE_DIRECTORY
${
_outdir
}
)
...
...
modules/haartraining/CMakeLists.txt
View file @
41f5e8e3
...
...
@@ -38,6 +38,12 @@ set(cvhaartraining_lib_src
)
add_library
(
opencv_haartraining_engine STATIC
${
cvhaartraining_lib_src
}
)
set_target_properties
(
opencv_haartraining_engine PROPERTIES
DEBUG_POSTFIX
"
${
OPENCV_DEBUG_POSTFIX
}
"
ARCHIVE_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/lib/"
RUNTIME_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/bin/"
INSTALL_NAME_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/lib"
)
if
(
NOT ANDROID
)
# -----------------------------------------------------------
...
...
modules/highgui/CMakeLists.txt
View file @
41f5e8e3
...
...
@@ -252,7 +252,7 @@ endif()
add_library
(
${
the_target
}
${
lib_srcs
}
${
highgui_hdrs
}
${
grfmt_hdrs
}
${
highgui_ext_hdrs
}
)
if
(
PCHSupport_FOUND
)
if
(
PCHSupport_FOUND
AND USE_PRECOMPILED_HEADERS
)
set
(
pch_header
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/precomp.hpp
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual*"
OR
${
CMAKE_GENERATOR
}
MATCHES
"Xcode*"
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual*"
)
...
...
modules/traincascade/CMakeLists.txt
View file @
41f5e8e3
...
...
@@ -30,6 +30,9 @@ add_executable(${the_target} ${traincascade_files})
add_dependencies
(
${
the_target
}
${
traincascade_libs
}
)
set_target_properties
(
${
the_target
}
PROPERTIES
DEBUG_POSTFIX
"
${
OPENCV_DEBUG_POSTFIX
}
"
ARCHIVE_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/lib/"
RUNTIME_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/bin/"
INSTALL_NAME_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/lib"
OUTPUT_NAME
"opencv_traincascade"
)
target_link_libraries
(
${
the_target
}
${
traincascade_libs
}
)
...
...
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