2015-08-18 05:54:43 +00:00
|
|
|
include_directories(${LIBPNG_INCLUDE_DIR} ${SQUISH_INCLUDE_DIR})
|
2015-07-07 03:22:44 +00:00
|
|
|
|
2015-07-09 06:40:55 +00:00
|
|
|
# Assembles a source/header pair list for use in a DNA library
|
2015-07-09 07:01:58 +00:00
|
|
|
macro(make_dnalist outlist)
|
2016-04-07 03:40:25 +00:00
|
|
|
foreach(type ${ARGN})
|
2015-08-17 23:46:41 +00:00
|
|
|
get_filename_component(dir ${type} DIRECTORY)
|
2015-08-18 23:07:46 +00:00
|
|
|
if(dir)
|
2016-04-07 03:40:25 +00:00
|
|
|
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${dir}")
|
2015-08-18 23:07:46 +00:00
|
|
|
set(dir "${dir}/")
|
|
|
|
endif()
|
2015-08-17 23:46:41 +00:00
|
|
|
get_filename_component(name ${type} NAME)
|
2015-08-18 23:07:46 +00:00
|
|
|
atdna(${dir}atdna_${name}.cpp ${dir}/${name}.hpp)
|
2015-08-17 23:46:41 +00:00
|
|
|
list(APPEND ${outlist}
|
2015-08-18 23:07:46 +00:00
|
|
|
${dir}atdna_${name}.cpp
|
2015-08-17 23:46:41 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${dir}/${name}.hpp)
|
2015-07-09 07:15:43 +00:00
|
|
|
endforeach()
|
2015-07-09 06:40:55 +00:00
|
|
|
endmacro()
|
|
|
|
|
2015-07-22 19:05:18 +00:00
|
|
|
include_directories(${ZLIB_INCLUDE_DIR} ${LZO_INCLUDE_DIR})
|
|
|
|
|
2015-07-09 07:15:43 +00:00
|
|
|
# Each game's DNA library
|
2015-07-07 03:22:44 +00:00
|
|
|
add_subdirectory(DNACommon)
|
|
|
|
add_subdirectory(DNAMP1)
|
|
|
|
add_subdirectory(DNAMP2)
|
|
|
|
add_subdirectory(DNAMP3)
|
|
|
|
|
2015-08-04 21:35:41 +00:00
|
|
|
# Embed master shader script
|
|
|
|
bintoc(RetroMasterShader.c Blender/RetroMasterShader.py RETRO_MASTER_SHADER)
|
|
|
|
|
2015-07-09 07:15:43 +00:00
|
|
|
# Each game's DataSpec implementation
|
2015-07-07 03:22:44 +00:00
|
|
|
add_library(RetroDataSpec
|
|
|
|
SpecBase.cpp
|
|
|
|
SpecMP1.cpp
|
|
|
|
SpecMP2.cpp
|
2015-08-04 21:35:41 +00:00
|
|
|
SpecMP3.cpp
|
|
|
|
Blender/BlenderSupport.hpp
|
|
|
|
Blender/BlenderSupport.cpp
|
|
|
|
Blender/RetroMasterShader.py
|
|
|
|
RetroMasterShader.c)
|