Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Josiah Bills
CMake
Commits
e31caa69
Commit
e31caa69
authored
11 years ago
by
Brad King
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-qt4_use_modules-QtAx' into release
parents
8e23c0bd
ce0c4802
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/Qt4Macros.cmake
+16
-8
16 additions, 8 deletions
Modules/Qt4Macros.cmake
with
16 additions
and
8 deletions
Modules/Qt4Macros.cmake
+
16
−
8
View file @
e31caa69
...
...
@@ -451,14 +451,22 @@ function(qt4_use_modules _target _link_type)
endif
()
foreach
(
_module
${
modules
}
)
string
(
TOUPPER
${
_module
}
_ucmodule
)
if
(
NOT QT_QT
${
_ucmodule
}
_FOUND
)
message
(
FATAL_ERROR
"Can not use
\"
${
_module
}
\"
module which has not yet been found."
)
endif
()
if
(
"
${
_ucmodule
}
"
STREQUAL
"MAIN"
)
message
(
FATAL_ERROR
"Can not use
\"
${
_module
}
\"
module with qt4_use_modules."
)
set
(
_targetPrefix QT_QT
${
_ucmodule
}
)
if
(
_ucmodule STREQUAL QAXCONTAINER OR _ucmodule STREQUAL QAXSERVER
)
if
(
NOT QT_Q
${
_ucmodule
}
_FOUND
)
message
(
FATAL_ERROR
"Can not use
\"
${
_module
}
\"
module which has not yet been found."
)
endif
()
set
(
_targetPrefix QT_Q
${
_ucmodule
}
)
else
()
if
(
NOT QT_QT
${
_ucmodule
}
_FOUND
)
message
(
FATAL_ERROR
"Can not use
\"
${
_module
}
\"
module which has not yet been found."
)
endif
()
if
(
"
${
_ucmodule
}
"
STREQUAL
"MAIN"
)
message
(
FATAL_ERROR
"Can not use
\"
${
_module
}
\"
module with qt4_use_modules."
)
endif
()
endif
()
target_link_libraries
(
${
_target
}
${
link_type
}
${
QT_QT
${
_ucmodule
}
_LIBRAR
Y
}
)
set_property
(
TARGET
${
_target
}
APPEND PROPERTY INCLUDE_DIRECTORIES
${
QT_QT
${
_ucmodule
}
_INCLUDE_DIR
}
${
QT_HEADERS_DIR
}
${
QT_MKSPECS_DIR
}
/default
)
set_property
(
TARGET
${
_target
}
APPEND PROPERTY COMPILE_DEFINITIONS
${
QT_QT
${
_ucmodule
}
_COMPILE_DEFINITIONS
}
)
target_link_libraries
(
${
_target
}
${
link_type
}
${
${
_targetPrefix
}
_LIBRAR
IES
}
)
set_property
(
TARGET
${
_target
}
APPEND PROPERTY INCLUDE_DIRECTORIES
${
${
_targetPrefix
}
_INCLUDE_DIR
}
${
QT_HEADERS_DIR
}
${
QT_MKSPECS_DIR
}
/default
)
set_property
(
TARGET
${
_target
}
APPEND PROPERTY COMPILE_DEFINITIONS
${
${
_targetPrefix
}
_COMPILE_DEFINITIONS
}
)
endforeach
()
endfunction
()
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