1
0
mirror of https://github.com/ScrelliCopter/VGM-Tools synced 2025-02-21 04:09:25 +11:00

combine all (except spctools) as subprojects

This commit is contained in:
2023-03-21 14:25:14 +11:00
parent 05008f5c47
commit 9946144995
8 changed files with 50 additions and 53 deletions

View File

@@ -1,18 +1,7 @@
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(dsptools LANGUAGES C)
set(COMMON "${CMAKE_SOURCE_DIR}/../common")
add_subdirectory(libdsptool)
set(HEADERS ${COMMON}/wave.h ${COMMON}/endian.h)
set(SOURCES ${COMMON}/wavefile.c ${COMMON}/wave.c dspdecode.c)
add_executable(dspdecode ${HEADERS} ${SOURCES})
add_executable(dspdecode dspdecode.c)
set_property(TARGET dspdecode PROPERTY C_STANDARD 99)
target_include_directories(dspdecode PRIVATE ${COMMON})
target_link_libraries(dspdecode DspTool::DspTool)
target_compile_options(dspdecode PRIVATE
$<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Wall -Wextra -pedantic>
$<$<C_COMPILER_ID:MSVC>:/Wall>)
target_link_libraries(dspdecode Common::wave DspTool::DspTool)
target_compile_options(dspdecode PRIVATE ${WARNINGS})