/thirdparty/jpeg/CMakeLists.txt

http://crashrpt.googlecode.com/ · CMake · 14 lines · 6 code · 5 blank · 3 comment · 0 complexity · 235a61f3d7f5f8bc87e62e8c48a5ae27 MD5 · raw file

  1. project(libjpeg)
  2. # Create the list of source files
  3. aux_source_directory( . source_files )
  4. # Define _UNICODE (use wide-char encoding)
  5. add_definitions(-D_UNICODE -D_CRT_SECURE_NO_DEPRECATE /wd4244 /wd4131 /wd4100 /wd4127 /wd4267 /wd4310)
  6. fix_default_compiler_settings_()
  7. # Add library build target
  8. add_library(libjpeg STATIC ${source_files})
  9. set_target_properties(libjpeg PROPERTIES DEBUG_POSTFIX d )