hedgewars/avwrapper/CMakeLists.txt
author sheepluva
Wed, 11 Nov 2015 23:29:49 +0100
branchsdl2transition
changeset 11368 c481d087f653
parent 9959 1a42d36f346a
child 11379 7bc9042549c1
permissions -rw-r--r--
cmake tweaks. make pas2c build with sdl2 (keycodes or something still missing)
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
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
9959
1a42d36f346a use mainstream project name
koda
parents: 9224
diff changeset
     7
include_directories(${LIBAV_INCLUDE_DIR})
8811
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
9959
1a42d36f346a use mainstream project name
koda
parents: 9224
diff changeset
    11
target_link_libraries(avwrapper ${LIBAV_LIBRARIES})
9224
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