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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user