diff --git a/DataSpec/CMakeLists.txt b/DataSpec/CMakeLists.txt index 56041b5a8..c76e59d7a 100644 --- a/DataSpec/CMakeLists.txt +++ b/DataSpec/CMakeLists.txt @@ -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 diff --git a/DataSpec/DNAMP1/CMakeLists.txt b/DataSpec/DNAMP1/CMakeLists.txt index cae2b6d79..3c3a1ab08 100644 --- a/DataSpec/DNAMP1/CMakeLists.txt +++ b/DataSpec/DNAMP1/CMakeLists.txt @@ -1,6 +1,4 @@ -list(APPEND types - PAK - MLVL) - -make_dnalist(liblist ${types}) +make_dnalist(liblist + PAK + MLVL) add_library(DNAMP1 ${liblist}) diff --git a/DataSpec/DNAMP3/CMakeLists.txt b/DataSpec/DNAMP3/CMakeLists.txt index a7b4586f2..8f7502e60 100644 --- a/DataSpec/DNAMP3/CMakeLists.txt +++ b/DataSpec/DNAMP3/CMakeLists.txt @@ -1,5 +1,3 @@ -list(APPEND types - PAK) - -make_dnalist(liblist ${types}) +make_dnalist(liblist + PAK) add_library(DNAMP3 ${liblist})