hedgewars/avwrapper/CMakeLists.txt
author sheepluva
Fri, 06 Dec 2013 22:48:30 +0100
changeset 9759 0efa9672c000
parent 9224 bce8cf41d666
child 9959 1a42d36f346a
permissions -rw-r--r--
* turned out the no-flight zone is also a no-climb-and-progress zone * also changed it to not completely nullify velocity (otherwise cliffjumpers can get stuck in midair), just make sure dy is not negative
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8811
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
     1
#FFMPEG/Libav libraries have been searched already in main CMakeLists.txt
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
     2
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
     3
# TODO: this check is only for SDL < 2
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
     4
# fpc will take care of linking but we need to have this library installed
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
     5
find_package(GLUT REQUIRED)
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
     6
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
     7
include_directories(${FFMPEG_INCLUDE_DIR})
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
     8
9224
bce8cf41d666 merge cmake_pascal branch in default
koda
parents: 8811
diff changeset
     9
add_library(avwrapper avwrapper.c)
bce8cf41d666 merge cmake_pascal branch in default
koda
parents: 8811
diff changeset
    10
#TODO: find good VERSION and SOVERSION values
bce8cf41d666 merge cmake_pascal branch in default
koda
parents: 8811
diff changeset
    11
target_link_libraries(avwrapper ${FFMPEG_LIBRARIES})
bce8cf41d666 merge cmake_pascal branch in default
koda
parents: 8811
diff changeset
    12
install(TARGETS avwrapper RUNTIME DESTINATION ${target_binary_install_dir}
bce8cf41d666 merge cmake_pascal branch in default
koda
parents: 8811
diff changeset
    13
                          LIBRARY DESTINATION ${target_library_install_dir}
bce8cf41d666 merge cmake_pascal branch in default
koda
parents: 8811
diff changeset
    14
                          ARCHIVE DESTINATION ${target_library_install_dir})
8811
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
    15