Skip to content

Commit

Permalink
修复10bit编译配置
Browse files Browse the repository at this point in the history
  • Loading branch information
dujiangpku committed Jun 30, 2022
1 parent 38f4346 commit b4c1df4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ set_source_files_properties(${DIR_SRC_TEST} PROPERTIES COMPILE_FLAGS "${CMAKE_C_
add_subdirectory(./src)
include_directories("./inc")

if(${COMPILE_10BIT})
add_definitions(-DCOMPILE_10BIT=1)
message("-- compile 10bit")
else()
add_definitions(-DCOMPILE_10BIT=0)
message("-- compile 8bit")
endif()

add_executable(uavs3enc ${DIR_SRC_TEST})

target_link_libraries(uavs3enc m)
Expand Down
2 changes: 0 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ include_directories("../inc")

if(${COMPILE_10BIT})
add_definitions(-DCOMPILE_10BIT=1)
message("-- compile 10bit")
else()
add_definitions(-DCOMPILE_10BIT=0)
message("-- compile 8bit")
endif()

set_source_files_properties(${DIR_UAVS3E_SRC} PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -fPIC -std=c99 -O3")
Expand Down

0 comments on commit b4c1df4

Please sign in to comment.