Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
1d47cd94
Commit
1d47cd94
authored
Jan 12, 2013
by
Stephen Kelly
Committed by
Brad King
Jan 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for the interfaces in targets exported from the build tree.
parent
6c828f91
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
Tests/ExportImport/Export/CMakeLists.txt
Tests/ExportImport/Export/CMakeLists.txt
+1
-0
Tests/ExportImport/Import/A/CMakeLists.txt
Tests/ExportImport/Import/A/CMakeLists.txt
+13
-16
No files found.
Tests/ExportImport/Export/CMakeLists.txt
View file @
1d47cd94
...
...
@@ -250,6 +250,7 @@ endif()
# Export from build tree.
export
(
TARGETS testExe1 testLib1 testLib2 testLib3
testExe2libImp testLib3Imp testLib3ImpDep
testSharedLibRequired testSharedLibDepends
NAMESPACE bld_
FILE ExportBuildTree.cmake
)
...
...
Tests/ExportImport/Import/A/CMakeLists.txt
View file @
1d47cd94
...
...
@@ -159,22 +159,19 @@ endif()
add_executable
(
deps_iface deps_iface.c
)
target_link_libraries
(
deps_iface testLibDepends
)
set_property
(
TARGET deps_iface APPEND PROPERTY
COMPILE_DEFINITIONS
$<TARGET_PROPERTY:testLibDepends,INTERFACE_COMPILE_DEFINITIONS>
)
set_property
(
TARGET deps_iface APPEND PROPERTY
INCLUDE_DIRECTORIES
$<TARGET_PROPERTY:testLibDepends,INTERFACE_INCLUDE_DIRECTORIES>
)
target_include_directories
(
deps_iface PRIVATE testLibDepends
)
target_compile_definitions
(
deps_iface PRIVATE testLibDepends
)
add_executable
(
deps_shared_iface deps_shared_iface.cpp
)
target_link_libraries
(
deps_shared_iface testSharedLibDepends
)
set_property
(
TARGET deps_shared_iface APPEND PROPERTY
COMPILE_DEFINITIONS
$<TARGET_PROPERTY:testSharedLibDepends,INTERFACE_COMPILE_DEFINITIONS>
)
set_property
(
TARGET deps_shared_iface APPEND PROPERTY
INCLUDE_DIRECTORIES
$<TARGET_PROPERTY:testSharedLibDepends,INTERFACE_INCLUDE_DIRECTORIES>
)
target_include_directories
(
deps_shared_iface PRIVATE testSharedLibDepends
)
target_compile_definitions
(
deps_shared_iface PRIVATE testSharedLibDepends
)
#-----------------------------------------------------------------------------
# Test that targets imported from the build tree have their dependencies
# evaluated correctly. The above already tests the same for the install tree.
add_executable
(
deps_shared_iface2 deps_shared_iface.cpp
)
target_link_libraries
(
deps_shared_iface2 bld_testSharedLibDepends
)
target_include_directories
(
deps_shared_iface2 PRIVATE bld_testSharedLibDepends
)
target_compile_definitions
(
deps_shared_iface2 PRIVATE bld_testSharedLibDepends
)
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