aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/otherbinding
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/otherbinding')
-rw-r--r--sources/shiboken2/tests/otherbinding/CMakeLists.txt17
-rw-r--r--sources/shiboken2/tests/otherbinding/typesystem_other.xml2
2 files changed, 5 insertions, 14 deletions
diff --git a/sources/shiboken2/tests/otherbinding/CMakeLists.txt b/sources/shiboken2/tests/otherbinding/CMakeLists.txt
index 44855e297..bc5c4bdad 100644
--- a/sources/shiboken2/tests/otherbinding/CMakeLists.txt
+++ b/sources/shiboken2/tests/otherbinding/CMakeLists.txt
@@ -26,26 +26,17 @@ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Running generator for 'other' test binding..."
)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_SOURCE_DIR}
- ${libother_SOURCE_DIR}
- ${libsample_SOURCE_DIR}
- ${libsample_SOURCE_DIR}/..
- ${sample_BINARY_DIR}
- ${sample_BINARY_DIR}/sample
- ${libshiboken_SOURCE_DIR}
- ${libshiboken_BINARY_DIR})
add_library(other MODULE ${other_SRC})
+target_include_directories(other PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${sample_BINARY_DIR}/sample)
+target_link_libraries(other PUBLIC libother libsample libshiboken)
set_property(TARGET other PROPERTY PREFIX "")
set_property(TARGET other PROPERTY OUTPUT_NAME "other${PYTHON_EXTENSION_SUFFIX}")
if(WIN32)
set_property(TARGET other PROPERTY SUFFIX ".pyd")
endif()
-target_link_libraries(other
- libother
- libsample
- libshiboken)
+
add_dependencies(other sample)
create_generator_target(other)
diff --git a/sources/shiboken2/tests/otherbinding/typesystem_other.xml b/sources/shiboken2/tests/otherbinding/typesystem_other.xml
index 63ccdd518..2932dafb3 100644
--- a/sources/shiboken2/tests/otherbinding/typesystem_other.xml
+++ b/sources/shiboken2/tests/otherbinding/typesystem_other.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<typesystem package="other">
<load-typesystem name="typesystem_sample.xml" generate="no" />