mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 12:53:53 +01:00
change name
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
# Project name and version
|
||||
project(minirds VERSION 1.0)
|
||||
project(rds95 VERSION 1.0)
|
||||
|
||||
# Define options
|
||||
option(ODA_RTP "Enable ODA (RT+)" ON)
|
||||
@@ -11,9 +11,13 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -pedantic -O2 -std=c18
|
||||
|
||||
# Define sources
|
||||
set(SOURCES
|
||||
minirds.c
|
||||
rds95.c
|
||||
waveforms.c
|
||||
rds.c
|
||||
control_pipe.c
|
||||
modulator.c
|
||||
lib.c
|
||||
ascii_cmd.c
|
||||
)
|
||||
|
||||
if(ODA_RTP)
|
||||
@@ -21,19 +25,11 @@ if(ODA_RTP)
|
||||
add_definitions(-DODA_RTP)
|
||||
endif()
|
||||
|
||||
set(SOURCES
|
||||
${SOURCES}
|
||||
control_pipe.c
|
||||
modulator.c
|
||||
lib.c
|
||||
ascii_cmd.c
|
||||
)
|
||||
|
||||
# Define the executable
|
||||
add_executable(minirds ${SOURCES})
|
||||
add_executable(rds95 ${SOURCES})
|
||||
|
||||
# Link additional libraries
|
||||
target_link_libraries(minirds PRIVATE m pthread pulse pulse-simple)
|
||||
target_link_libraries(rds95 PRIVATE m pthread pulse pulse-simple)
|
||||
|
||||
# Install target
|
||||
install(TARGETS minirds DESTINATION /usr/local/bin)
|
||||
install(TARGETS rds95 DESTINATION /usr/local/bin)
|
||||
Reference in New Issue
Block a user