aseprite/third_party/modp_b64/CMakeLists.txt
2015-12-21 13:44:02 -03:00

15 lines
296 B
CMake

# cmake support for modp_b64 by David Capello
check_c_source_runs("
int main() {
unsigned long value = 0x40302010ul;
return (((unsigned char*)&value)[0] != 0x10) ? 0: 1;
}
" WORDS_BIGENDIAN)
if(WORDS_BIGENDIAN)
add_definitions(-DWORDS_BIGENDIAN)
endif()
add_library(modp_b64 modp_b64.c)