Source/External/ogg/CMakeLists.txt

Mon, 12 Jul 2021 17:44:02 +0300

author
dogukangulyasar
date
Mon, 12 Jul 2021 17:44:02 +0300
branch
4.x-dev
changeset 1713
80875b924288
parent 1583
1056c0f51c2c
permissions
-rw-r--r--

* Edited readme Ubuntu 18.04 dependencies.

1583
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
1 cmake_minimum_required(VERSION 3.5)
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
2
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
3 include_directories(include)
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
4
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
5
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
6 SET(Local
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
7 src/bitwise.c
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
8 src/framing.c
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
9 )
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
10
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
11 add_library(ogg STATIC
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
12 ${Local}
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
13 )
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
14
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
15 IF(WIN32)
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
16 set_target_properties(ogg PROPERTIES
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
17 DEBUG_OUTPUT_NAME ogg_d
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
18 RELWITHDEBINFO_OUTPUT_NAME ogg_rd
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
19 MINSIZEREL_OUTPUT_NAME ogg_min
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
20 )
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
21 ENDIF()
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
22
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
23 install(TARGETS ogg
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
24 EXPORT GorgonTargets
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
25 ARCHIVE DESTINATION "${INSTALL_LIB_DIR}"
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
26 PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR}/Gorgon"
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
27 )
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
28
1056c0f51c2c * Builtin Vorbis support
cemkalyoncu
parents:
diff changeset
29 export(TARGETS ogg APPEND FILE "${PROJECT_PACKAGE_DIR}/GorgonTargets.cmake")

mercurial