Updated libraries.

This commit is contained in:
Joshua Brookover
2017-05-18 21:32:36 -05:00
parent fadddba0ab
commit 0724dc3e67
5 changed files with 24 additions and 4 deletions

2
bgfx

Submodule bgfx updated: 8ca270a449...b0a122449c

2
bimg

Submodule bimg updated: 00bc99f7e8...a495171fda

2
bx

Submodule bx updated: 96e8c66a60...5756434bb5

19
cmake/3rdparty/iqa.cmake vendored Normal file
View File

@@ -0,0 +1,19 @@
# bgfx.cmake - bgfx building in cmake
# Written in 2017 by Joshua Brookover <joshua.al.brookover@gmail.com>
# To the extent possible under law, the author(s) have dedicated all copyright
# and related and neighboring rights to this software to the public domain
# worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with
# this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
if( TARGET iqa )
return()
endif()
file( GLOB IQA_SOURCES ${BIMG_DIR}/3rdparty/iqa/source/*.c ${BIMG_DIR}/3rdparty/iqa/include/*.h )
add_library( iqa STATIC ${IQA_SOURCES} )
target_include_directories( iqa PUBLIC ${BIMG_DIR}/3rdparty/iqa/include )
set_target_properties( iqa PROPERTIES FOLDER "bgfx/3rdparty" )

View File

@@ -12,6 +12,7 @@
include( cmake/3rdparty/edtaa3.cmake )
include( cmake/3rdparty/etc1.cmake )
include( cmake/3rdparty/etc2.cmake )
include( cmake/3rdparty/iqa.cmake )
include( cmake/3rdparty/libsquish.cmake )
include( cmake/3rdparty/nvtt.cmake )
include( cmake/3rdparty/pvrtc.cmake )
@@ -32,7 +33,7 @@ add_library( bimg STATIC ${BIMG_SOURCES} )
target_include_directories( bimg PUBLIC ${BIMG_DIR}/include )
# bimg dependencies
target_link_libraries( bimg bx edtaa3 etc1 etc2 squish nvtt pvrtc )
target_link_libraries( bimg bx edtaa3 etc1 etc2 iqa squish nvtt pvrtc )
# Put in a "bgfx" folder in Visual Studio
set_target_properties( bimg PROPERTIES FOLDER "bgfx" )