mirror of
https://github.com/Pixinn/Rgb2Hires.git
synced 2025-01-09 08:33:58 +00:00
24 lines
740 B
CMake
24 lines
740 B
CMake
|
cmake_minimum_required (VERSION 2.6)
|
||
|
project (Rgb2Hires)
|
||
|
|
||
|
# The version number.
|
||
|
set (Rgb2Hires_VERSION_MAJOR 1)
|
||
|
set (Rgb2Hires_VERSION_MINOR 0)
|
||
|
|
||
|
#Warning level
|
||
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
|
||
|
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||
|
set(warnings "-Wall -Wextra -Werror")
|
||
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||
|
set(warnings "/W4 /WX /EHsc")
|
||
|
endif()
|
||
|
|
||
|
|
||
|
add_executable(${PROJECT_NAME} src/Common.h
|
||
|
src/HiRes.cpp
|
||
|
src/HiRes.h
|
||
|
src/ImageQuantized.cpp
|
||
|
src/ImageQuantized.h
|
||
|
src/Main.cpp
|
||
|
)
|
||
|
|