aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-19 12:02:50 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-19 16:19:20 -0300
commit7701c41779a72d9a6dd8359da33345f4acc93856 (patch)
treee3eee7875470578190526760a9c1b571b90c062c /tests
parentd0c503628bdc5183f7f4792e10a4e105ff795d81 (diff)
Use .pyd to python modules on windows.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/otherbinding/CMakeLists.txt3
-rw-r--r--tests/samplebinding/CMakeLists.txt3
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/otherbinding/CMakeLists.txt b/tests/otherbinding/CMakeLists.txt
index 9a67d41e4..6ec70700e 100644
--- a/tests/otherbinding/CMakeLists.txt
+++ b/tests/otherbinding/CMakeLists.txt
@@ -37,6 +37,9 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${libshiboken_SOURCE_DIR})
add_library(other MODULE ${other_SRC})
set_property(TARGET other PROPERTY PREFIX "")
+if(WIN32)
+ set_property(TARGET other PROPERTY SUFFIX ".pyd")
+endif()
target_link_libraries(other
libother
libsample
diff --git a/tests/samplebinding/CMakeLists.txt b/tests/samplebinding/CMakeLists.txt
index 0dbf1170e..a240749a4 100644
--- a/tests/samplebinding/CMakeLists.txt
+++ b/tests/samplebinding/CMakeLists.txt
@@ -94,6 +94,9 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${libshiboken_SOURCE_DIR})
add_library(sample MODULE ${sample_SRC})
set_property(TARGET sample PROPERTY PREFIX "")
+if(WIN32)
+ set_property(TARGET sample PROPERTY SUFFIX ".pyd")
+endif()
target_link_libraries(sample
libsample
${SBK_PYTHON_LIBRARIES}