metaforce/hecl/blender/CMakeLists.txt

33 lines
1008 B
CMake
Raw Normal View History

2015-07-28 02:25:33 +00:00
list(APPEND PY_SOURCES
2015-08-31 04:06:22 +00:00
hecl/__init__.py
hecl/Nodegrid.py
hecl/hmdl/__init__.py
hecl/hmdl/HMDLMesh.py
hecl/hmdl/HMDLShader.py
hecl/hmdl/HMDLSkin.py
hecl/hmdl/HMDLTxtr.py
hecl/sact/__init__.py
hecl/sact/SACTAction.py
hecl/sact/SACTEvent.py
hecl/sact/SACTSubtype.py)
2015-07-28 02:25:33 +00:00
2015-08-13 07:30:23 +00:00
bintoc(hecl_blendershell.c hecl_blendershell.py HECL_BLENDERSHELL)
2015-08-31 03:36:24 +00:00
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/hecl.zip)
message("-- Generating addon package")
execute_process(COMMAND python zip_package.py
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/hecl.zip)
message(FATAL_ERROR "Unable to generate ${CMAKE_CURRENT_SOURCE_DIR}/hecl.zip; is python installed?")
endif()
endif()
bintoc(hecl_addon.c hecl.zip HECL_ADDON)
2015-07-08 04:26:29 +00:00
add_library(HECLBlender
BlenderConnection.cpp
2015-07-28 02:25:33 +00:00
BlenderConnection.hpp
2015-08-13 07:30:23 +00:00
hecl_blendershell.py
hecl_blendershell.c
2015-08-31 03:36:24 +00:00
hecl_addon.c
2015-07-28 02:25:33 +00:00
${PY_SOURCES})