2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-06 06:55:34 +00:00
metaforce/DataSpec/CMakeLists.txt
2015-07-08 21:01:58 -10:00

28 lines
711 B
CMake

include_directories(${HECL_INCLUDE_DIR} ${NOD_LIB_INCLUDE_DIR})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# Magic ingredient
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()
endmacro()
add_subdirectory(DNACommon)
add_subdirectory(DNAMP1)
add_subdirectory(DNAMP2)
add_subdirectory(DNAMP3)
add_library(RetroDataSpec
SpecBase.cpp
SpecMP1.cpp
SpecMP2.cpp
SpecMP3.cpp)
target_link_libraries(RetroDataSpec
DNAMP1
DNAMP3)