followed @Antidote's advice and added atdna_* prefix

This commit is contained in:
Jack Andersen 2015-07-08 21:15:43 -10:00
parent e548a9c452
commit fc6b61a63e
3 changed files with 11 additions and 13 deletions

View File

@ -6,17 +6,19 @@ find_package(atdna REQUIRED)
# Assembles a source/header pair list for use in a DNA library
macro(make_dnalist outlist)
foreach(type ${ARGN})
atdna(${type}.cpp ${type}.hpp)
list(APPEND ${outlist} ${type}.cpp ${type}.hpp)
endforeach()
foreach(type ${ARGN})
atdna(atdna_${type}.cpp ${type}.hpp)
list(APPEND ${outlist} atdna_${type}.cpp ${type}.hpp)
endforeach()
endmacro()
# Each game's DNA library
add_subdirectory(DNACommon)
add_subdirectory(DNAMP1)
add_subdirectory(DNAMP2)
add_subdirectory(DNAMP3)
# Each game's DataSpec implementation
add_library(RetroDataSpec
SpecBase.cpp
SpecMP1.cpp

View File

@ -1,6 +1,4 @@
list(APPEND types
make_dnalist(liblist
PAK
MLVL)
make_dnalist(liblist ${types})
add_library(DNAMP1 ${liblist})

View File

@ -1,5 +1,3 @@
list(APPEND types
make_dnalist(liblist
PAK)
make_dnalist(liblist ${types})
add_library(DNAMP3 ${liblist})