mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
move constants.h and the oscillator into libfm from libfmdsp
This commit is contained in:
@@ -14,11 +14,11 @@ file(GLOB SRC_FILES "src/*.c")
|
||||
|
||||
file(GLOB DSP_FILES "dsp/*.c")
|
||||
|
||||
# file(GLOB LIB_FILES "lib/*.c")
|
||||
file(GLOB LIB_FILES "lib/*.c")
|
||||
|
||||
file(GLOB IO_FILES "io/*.c")
|
||||
|
||||
# add_library(libfm OBJECT ${LIB_FILES})
|
||||
add_library(libfm OBJECT ${LIB_FILES})
|
||||
|
||||
add_library(libfmdsp OBJECT ${DSP_FILES})
|
||||
|
||||
@@ -26,11 +26,12 @@ add_library(libfmio OBJECT ${IO_FILES})
|
||||
|
||||
# Define DEBUG macro for Debug builds on libraries
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
target_compile_definitions(libfm PRIVATE DEBUG=1)
|
||||
target_compile_definitions(libfmdsp PRIVATE DEBUG=1)
|
||||
target_compile_definitions(libfmio PRIVATE DEBUG=1)
|
||||
endif()
|
||||
|
||||
set(FM_LIBS libfmio libfmdsp pulse pulse-simple m liquid)
|
||||
set(FM_LIBS libfm libfmio libfmdsp pulse pulse-simple m liquid)
|
||||
|
||||
foreach(SRC_FILE ${SRC_FILES})
|
||||
get_filename_component(EXEC_NAME ${SRC_FILE} NAME_WE)
|
||||
|
||||
Reference in New Issue
Block a user