protot/3rdparty/bimg/CMakeLists.txt

27 lines
529 B
CMake

PROJECT (BIMG CXX)
FIND_PACKAGE (OpenGL)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
ADD_DEFINITIONS ("-D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS")
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/../bimg/include
${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/
${OPENGL_INCLUDE_DIR}
)
SET (BIMG_SOURCES
# ../bx/src/amalgamated.cpp
# src/image_encode.cpp
src/image_decode.cpp
src/image.cpp
)
ADD_LIBRARY ( bimg SHARED ${BIMG_SOURCES} )
TARGET_LINK_LIBRARIES (bimg
)