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.

cmake_minimum_required(VERSION 3.5)

include_directories(include)


SET(Local 
    src/bitwise.c
    src/framing.c
)

add_library(ogg STATIC 
	${Local}
)

IF(WIN32)
	set_target_properties(ogg PROPERTIES 
		DEBUG_OUTPUT_NAME ogg_d
		RELWITHDEBINFO_OUTPUT_NAME  ogg_rd
		MINSIZEREL_OUTPUT_NAME  ogg_min
	)
ENDIF()

install(TARGETS ogg
	EXPORT GorgonTargets
	ARCHIVE DESTINATION "${INSTALL_LIB_DIR}"
	PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR}/Gorgon"
)

export(TARGETS ogg APPEND FILE "${PROJECT_PACKAGE_DIR}/GorgonTargets.cmake")

mercurial