diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-24 03:14:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-24 03:14:49 +0300 |
commit | c210b3991a074f27af80178c85d0658c4041480b (patch) | |
tree | 91f7029e54325c125411896aba150caa7f78be05 /source | |
parent | 261f74115daf8d1622c60a85ec1e0f3faef641fc (diff) |
support for blender as a module on win32.
Diffstat (limited to 'source')
-rw-r--r-- | source/creator/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index f13f3f7770f..99c7dba9305 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -169,7 +169,18 @@ if(WITH_PYTHON_MODULE) PREFIX "" OUTPUT_NAME bpy LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/ + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/ # only needed on windows ) + + if(WIN32) + # python modules use this + set_target_properties( + blender + PROPERTIES + SUFFIX ".pyd" + ) + endif() + else() add_executable(blender ${EXETYPE} ${SRC}) endif() |