Fix CMake libpng linking

This commit is contained in:
Raul Tambre 2016-02-13 08:15:41 +02:00
parent 035875825e
commit 9452c6b08c
2 changed files with 7 additions and 3 deletions

View file

@ -11,6 +11,10 @@ if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
message( FATAL_ERROR "RPCS3 can only be compiled on 64-bit platforms." )
endif()
# We use libpng's static library and don't need to build the shared library and run the tests
set(PNG_SHARED OFF CACHE BOOL "Build shared lib." FORCE)
set(PNG_TESTS OFF CACHE BOOL "Build tests." FORCE)
add_subdirectory( asmjit )
add_subdirectory( libpng )
# TODO: do real installation, including copying directory structure