Česky
Kamil Dudka

Digital Watermarking (C++, Qt3, gnulib)

File detail

Name:DownloadCMakeLists.txt [Download]
Location: kry2 > kry2-1.0pre1 > src
Size:1.4 KB
Last modification:2022-09-09 13:06

Source code

# Copyright (C) 2009 Kamil Dudka <xdudka00@stud.fit.vutbr.cz>
#
# This file is part of kry2.
#
# kry2 is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# kry2 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with kry2.  If not, see <http://www.gnu.org/licenses/>.
 
project(kry2 CXX C)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
enable_testing()
 
# avoid CMake warning
if(COMMAND cmake_policy)
    cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
 
# tweak compiler options
add_definitions(-W -Wall -Wno-deprecated -g -O2)
 
# gnulib
find_library(GL_LIB gnu ${GL_DIR})
if(NOT EXISTS ${GL_LIB})
    message(FATAL_ERROR "cannot find gnulib")
endif()
include_directories(${GL_INC})
link_libraries(${GL_LIB})
 
# hamming
include_directories(${HAM_DIR})
 
# Qt3
find_package(Qt3)
include_directories(${QT_INCLUDE_DIR})
link_libraries(${QT_QT_LIBRARY})
 
# kry2 executable
add_executable(kry2 kry2.cpp Color.cpp ${HAM_DIR}/hamming.o)