libavc/test/encoder/avcenc.cmake
Harish Mahendrakar eb463e5aa2 cmake: Set C standard to C90 and move few macros to specific targets
- Set CMAKE_C_STANDARD to 90
  Because of this, moved some declarations to start of the block
- Move PROFILE_ENABLE and MD5_DISABLE to specific targets as these
  macros are not used when building libraries

Bug: 242076773
Test: Builds
Change-Id: Icd0b8a48f015a695185ce2220800348f7a7512f1
2022-08-30 20:00:54 +00:00

11 lines
348 B
CMake

list(
APPEND
AVCENC_SRCS
"${AVC_ROOT}/test/encoder/input.c"
"${AVC_ROOT}/test/encoder/main.c"
"${AVC_ROOT}/test/encoder/output.c"
"${AVC_ROOT}/test/encoder/psnr.c"
"${AVC_ROOT}/test/encoder/recon.c")
libavc_add_executable(avcenc libavcenc SOURCES ${AVCENC_SRCS})
target_compile_definitions(avcenc PRIVATE PROFILE_ENABLE MD5_DISABLE)