-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (28 loc) · 1.02 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX ${CMAKE_CURRENT_SOURCE_DIR}/cmake/cxx_flag_overrides.cmake)
project(himg)
cmake_minimum_required(VERSION 2.6)
#---------------------------------------------------------
# begin of configuration section
# The values below are sane defaults to produce a build on all platforms,
# if you want to override them, set them in CMake.vars
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
# build with debugging symbols
set(DEBUG YES)
set(RELEASE NO)
set(WITH_JPEG NO)
set(REPORT_WITH_LOGO NO)
# allow to override the default values in CMake.vars
if(EXISTS ${PROJECT_SOURCE_DIR}/CMake.vars)
include(CMake.vars)
endif(EXISTS ${PROJECT_SOURCE_DIR}/CMake.vars)
# end of configuration section
#---------------------------------------------------------
find_package(HERMES_COMMON REQUIRED)
find_package(HERMES2D REQUIRED)
find_package(UMFPACK REQUIRED)
find_package(LIBPNG REQUIRED)
if(WITH_JPEG)
message("JPEG: No implemented yet")
find_package(LIBJPEG REQUIRED)
endif(WITH_JPEG)
add_subdirectory(src)