Česky
Kamil Dudka

Non-Uniform CA Designer (C++, GAlib, Boost)

File detail

Name:DownloadCMakeLists.txt [Download]
Location: nucad > src
Size:1.6 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 nucad (Non-Uniform CA Designer).
#
# nucad 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.
#
# nucad 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 nucad.  If not, see <http://www.gnu.org/licenses/>.
 
project(nucad CXX C)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
enable_testing()
 
# tweak compiler options
add_definitions(-pedantic -Wall -Wno-deprecated -g -O2)
 
# Check GAlib availability
find_library(GALIB ga ${GALIB_DIR}/ga)
if(NOT EXISTS ${GALIB})
  message(FATAL_ERROR "Cannot find GAlib library")
endif(NOT EXISTS ${GALIB})
include_directories(${GALIB_DIR})
 
# Check Boost availability
include(FindBoost)
find_package(Boost 1.35.0 REQUIRED)
link_directories(${Boost_LIBRARY_DIRS})
include_directories(${Boost_INCLUDE_DIRS})
 
# core library
add_library(core STATIC Ca.cpp CaDesigner.cpp CaFactory.cpp Color.cpp)
target_link_libraries(core ${GALIB})
 
# nucad executable
add_executable(nucad nucad.cpp)
target_link_libraries(nucad core)
 
# check executable
add_executable(check check.cpp)
target_link_libraries(check core)