all repos — mgba @ 43de75c973bb314e45556d87fa528b1505754910

mGBA Game Boy Advance Emulator

Detect libPNG and zlib
Jeffrey Pfau jeffrey@endrift.com
Tue, 12 Aug 2014 21:53:32 -0700
commit

43de75c973bb314e45556d87fa528b1505754910

parent

6291a62860376b1e4a5e0d3ee681b6c93eb10f68

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -86,8 +86,12 @@ set(DEBUGGER_SRC "${DEBUGGER_SRC};${CMAKE_SOURCE_DIR}/src/debugger/gdb-stub.c")

endif() source_group("ARM debugger" FILES ${DEBUGGER_SRC}) +find_package(PNG REQUIRED) +find_package(ZLIB REQUIRED) +list(APPEND DEPENDENCY_LIB ${PNG_LIBRARIES} ${ZLIB_LIBRARIES}) + add_library(${BINARY_NAME} SHARED ${ARM_SRC} ${GBA_SRC} ${DEBUGGER_SRC} ${RENDERER_SRC} ${UTIL_SRC} ${VFS_SRC} ${OS_SRC}) -target_link_libraries(${BINARY_NAME} m ${DEBUGGER_LIB} ${OS_LIB} ${DEPENDENCY_LIB} png) +target_link_libraries(${BINARY_NAME} m ${DEBUGGER_LIB} ${OS_LIB} ${DEPENDENCY_LIB}) if(BUILD_SDL) add_subdirectory(${CMAKE_SOURCE_DIR}/src/platform/sdl ${CMAKE_BINARY_DIR}/sdl)