hedgewars/avwrapper/CMakeLists.txt
changeset 9959 1a42d36f346a
parent 9224 bce8cf41d666
child 11379 7bc9042549c1
equal deleted inserted replaced
9957:7a62f31895ac 9959:1a42d36f346a
     1 #FFMPEG/Libav libraries have been searched already in main CMakeLists.txt
     1 #libraries have already been searched in main CMakeLists.txt
     2 
     2 
     3 # TODO: this check is only for SDL < 2
     3 # TODO: this check is only for SDL < 2
     4 # fpc will take care of linking but we need to have this library installed
     4 # fpc will take care of linking but we need to have this library installed
     5 find_package(GLUT REQUIRED)
     5 find_package(GLUT REQUIRED)
     6 
     6 
     7 include_directories(${FFMPEG_INCLUDE_DIR})
     7 include_directories(${LIBAV_INCLUDE_DIR})
     8 
     8 
     9 add_library(avwrapper avwrapper.c)
     9 add_library(avwrapper avwrapper.c)
    10 #TODO: find good VERSION and SOVERSION values
    10 #TODO: find good VERSION and SOVERSION values
    11 target_link_libraries(avwrapper ${FFMPEG_LIBRARIES})
    11 target_link_libraries(avwrapper ${LIBAV_LIBRARIES})
    12 install(TARGETS avwrapper RUNTIME DESTINATION ${target_binary_install_dir}
    12 install(TARGETS avwrapper RUNTIME DESTINATION ${target_binary_install_dir}
    13                           LIBRARY DESTINATION ${target_library_install_dir}
    13                           LIBRARY DESTINATION ${target_library_install_dir}
    14                           ARCHIVE DESTINATION ${target_library_install_dir})
    14                           ARCHIVE DESTINATION ${target_library_install_dir})
    15 
    15