C library to convert any image into `.paa` texture file
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
767 B

cmake_minimum_required(VERSION 3.13)
project(libpaa C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
include_directories(include)
find_package(DevIL REQUIRED)
include_directories(${IL_INCLUDE_DIR})
set(LIBS ${LIBS} ${IL_LIBRARIES} ${ILU_LIBRARIES})
find_package(LZO REQUIRED)
include_directories(${LZO_INCLUDE_DIR})
set(LIBS ${LIBS} ${LZO_LIBRARIES})
set(LIB_SRCS src/paa.c src/il_paa.c)
# targets
add_library(paa SHARED ${LIB_SRCS})
set_target_properties(paa PROPERTIES PUBLIC_HEADER "include/paa.h")
target_link_libraries(paa ${LIBS})
add_executable(paac src/main.c)
target_link_libraries(paac paa)
install(TARGETS paa paac
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib)