hedgewars/avwrapper/CMakeLists.txt
author Wuzzy <Wuzzy2@mail.ru>
Thu, 03 Jan 2019 19:46:48 +0100
changeset 14514 5ac181cb2396
parent 12124 ffc7bb9fde01
permissions -rw-r--r--
Fix bee targeting fail across wrap world edge Previously, the bee always aimed for the light area, no matter where you actually put the target. It also got confused whenever it flew across the wrap world edge. How the bee works now: 1) The placed bee target is *not* recalculated when it was placed in the "gray" part of the wrap world edge. This allows for more fine-tuning. 1a) Place target in light area: bee aims for target light area 1b) Place target in gray area: bee aims for target, but flies to gray area first 2) Bee target is recalculated whenever bee passes the wrap world edge.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9959
1a42d36f346a use mainstream project name
koda
parents: 9224
diff changeset
     1
#libraries have already been searched in main CMakeLists.txt
8811
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
     2
9959
1a42d36f346a use mainstream project name
koda
parents: 9224
diff changeset
     3
include_directories(${LIBAV_INCLUDE_DIR})
8811
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
     4
9224
bce8cf41d666 merge cmake_pascal branch in default
koda
parents: 8811
diff changeset
     5
add_library(avwrapper avwrapper.c)
12124
ffc7bb9fde01 Adopt some patches from OpenBSD port
unc0rr
parents: 11379
diff changeset
     6
set_target_properties(avwrapper PROPERTIES
ffc7bb9fde01 Adopt some patches from OpenBSD port
unc0rr
parents: 11379
diff changeset
     7
                          VERSION 1.0
ffc7bb9fde01 Adopt some patches from OpenBSD port
unc0rr
parents: 11379
diff changeset
     8
                          SOVERSION 1.0)
9959
1a42d36f346a use mainstream project name
koda
parents: 9224
diff changeset
     9
target_link_libraries(avwrapper ${LIBAV_LIBRARIES})
9224
bce8cf41d666 merge cmake_pascal branch in default
koda
parents: 8811
diff changeset
    10
install(TARGETS avwrapper RUNTIME DESTINATION ${target_binary_install_dir}
bce8cf41d666 merge cmake_pascal branch in default
koda
parents: 8811
diff changeset
    11
                          LIBRARY DESTINATION ${target_library_install_dir}
bce8cf41d666 merge cmake_pascal branch in default
koda
parents: 8811
diff changeset
    12
                          ARCHIVE DESTINATION ${target_library_install_dir})
8811
dcdfcddf37ee move avwraper compilation in its own folder
koda
parents:
diff changeset
    13