add source code
This commit is contained in:
17
CMakeLists.txt
Normal file
17
CMakeLists.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
project(hello-ffmpeg LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
link_directories("/Users/lenn/ffmpeg_build/lib")
|
||||
include_directories("/Users/lenn/ffmpeg_build/include")
|
||||
|
||||
add_executable(hello-ffmpeg main.cpp)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE avutil)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
install(TARGETS hello-ffmpeg
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
Reference in New Issue
Block a user