2016-09-18 23:46:49 +00:00
|
|
|
macro(hecl_add_list rel_path a_list)
|
|
|
|
unset(tmp_list)
|
|
|
|
foreach(path IN LISTS ${a_list})
|
|
|
|
list(APPEND tmp_list "${rel_path}/${path}")
|
|
|
|
endforeach(path)
|
|
|
|
set(${a_list} "${tmp_list}" PARENT_SCOPE)
|
|
|
|
endmacro(hecl_add_list)
|
|
|
|
|
|
|
|
add_subdirectory(Blender)
|
2015-07-13 06:30:20 +00:00
|
|
|
add_subdirectory(Backend)
|
|
|
|
add_subdirectory(Frontend)
|
|
|
|
add_subdirectory(Runtime)
|
2015-07-07 03:24:09 +00:00
|
|
|
|
2015-07-22 19:14:50 +00:00
|
|
|
if(WIN32)
|
2016-03-04 23:02:44 +00:00
|
|
|
list(APPEND PLAT_SRCS winsupport.cpp ../include/hecl/winsupport.hpp)
|
2015-07-22 19:14:50 +00:00
|
|
|
endif()
|
|
|
|
|
2016-03-04 23:02:44 +00:00
|
|
|
atdna(atdna_HMDLMeta.cpp ../include/hecl/HMDLMeta.hpp)
|
|
|
|
atdna(atdna_Frontend.cpp ../include/hecl/Frontend.hpp)
|
|
|
|
atdna(atdna_Runtime.cpp ../include/hecl/Runtime.hpp)
|
|
|
|
atdna(atdna_CVar.cpp ../include/hecl/CVar.hpp)
|
2015-11-10 02:06:27 +00:00
|
|
|
|
2017-03-10 17:58:43 +00:00
|
|
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
|
|
|
|
add_definitions(-DHECL_MULTIPROCESSOR)
|
|
|
|
endif()
|
|
|
|
|
2016-03-04 23:02:44 +00:00
|
|
|
add_library(hecl-common
|
2016-09-18 23:46:49 +00:00
|
|
|
${BLENDER_SOURCES}
|
|
|
|
${BACKEND_SOURCES}
|
|
|
|
${FRONTEND_SOURCES}
|
|
|
|
${RUNTIME_SOURCES}
|
2016-03-04 23:02:44 +00:00
|
|
|
hecl.cpp
|
2016-09-18 23:46:49 +00:00
|
|
|
Project.cpp
|
2015-07-07 03:24:09 +00:00
|
|
|
ProjectPath.cpp
|
2015-07-13 06:30:20 +00:00
|
|
|
WideStringConvert.cpp
|
2015-12-30 22:03:37 +00:00
|
|
|
HumanizeNumber.cpp
|
2015-12-02 21:11:10 +00:00
|
|
|
CVar.cpp
|
|
|
|
CVarManager.cpp
|
2016-03-04 23:02:44 +00:00
|
|
|
../include/hecl/CVar.hpp
|
|
|
|
../include/hecl/CVarManager.hpp
|
|
|
|
../include/hecl/hecl.hpp
|
|
|
|
../include/hecl/HMDLMeta.hpp
|
|
|
|
../include/hecl/Backend/Backend.hpp
|
|
|
|
../include/hecl/Backend/GX.hpp
|
|
|
|
../include/hecl/Backend/ProgrammableCommon.hpp
|
|
|
|
../include/hecl/Backend/GLSL.hpp
|
|
|
|
../include/hecl/Backend/HLSL.hpp
|
|
|
|
../include/hecl/Backend/Metal.hpp
|
2016-09-18 23:46:49 +00:00
|
|
|
../include/hecl/Blender/BlenderConnection.hpp
|
2016-03-04 23:02:44 +00:00
|
|
|
../include/hecl/Frontend.hpp
|
|
|
|
../include/hecl/Database.hpp
|
|
|
|
../include/hecl/Runtime.hpp
|
2016-03-27 20:41:29 +00:00
|
|
|
../include/hecl/ClientProcess.hpp
|
2017-06-10 18:22:40 +00:00
|
|
|
../include/hecl/SystemChar.hpp
|
2016-12-10 02:32:20 +00:00
|
|
|
../include/hecl/BitVector.hpp
|
|
|
|
../include/hecl/MathExtras.hpp
|
2016-12-12 20:09:53 +00:00
|
|
|
../include/hecl/UniformBufferPool.hpp
|
|
|
|
../include/hecl/VertexBufferPool.hpp
|
2016-03-27 20:41:29 +00:00
|
|
|
ClientProcess.cpp
|
2015-11-14 02:26:06 +00:00
|
|
|
atdna_HMDLMeta.cpp
|
2015-11-10 02:06:27 +00:00
|
|
|
atdna_Frontend.cpp
|
2015-11-13 02:12:09 +00:00
|
|
|
atdna_Runtime.cpp
|
2015-12-02 21:11:10 +00:00
|
|
|
atdna_CVar.cpp
|
2015-07-22 19:14:50 +00:00
|
|
|
${PLAT_SRCS})
|
2015-07-07 04:45:29 +00:00
|
|
|
|