Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Make possible to use CMake --target install for library installation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
widgetii authored Jul 4, 2022
1 parent 5056d4a commit d347854
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ include_directories(
link_directories(/usr/local/lib)
add_definitions(-DVERSION="${PROJECT_VERSION}")

add_library(${PROJECT_NAME}
set(SRCS
src/aac/aac.c
src/au/fmt.c
src/au/util.c
Expand All @@ -87,6 +87,37 @@ add_library(${PROJECT_NAME}
src/vidmix/vidmix.c
)

set(HEADERS
include/rem_aac.h
include/rem_aubuf.h
include/rem_auconv.h
include/rem_audio.h
include/rem_aufile.h
include/rem_auframe.h
include/rem_au.h
include/rem_aulevel.h
include/rem_aumix.h
include/rem_auresamp.h
include/rem_autone.h
include/rem_avc.h
include/rem_dsp.h
include/rem_dtmf.h
include/rem_fir.h
include/rem_flv.h
include/rem_g711.h
include/rem_goertzel.h
include/rem.h
include/rem_vidconv.h
include/rem_video.h
include/rem_vid.h
include/rem_vidmix.h
)

add_library(${PROJECT_NAME}
${SRCS}
${HEADERS}
)

##############################################################################
#
# Main target object
Expand All @@ -95,3 +126,6 @@ add_library(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME} re -lpthread -lm)
set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_SOVERSION})

set_target_properties(rem PROPERTIES PUBLIC_HEADER "${HEADERS}")
install(TARGETS rem LIBRARY)

0 comments on commit d347854

Please sign in to comment.