~wbetz/fesslix/trunk

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
project(fesslix)
cmake_minimum_required(VERSION 2.6)

#find_package(stdlibs REQUIRED)


#SET(TEST_STR "Test" CACHE STRING "This is my variable")
#option(TEST_OPT "help string describing option" ON)
#SET(TEST_BOOL OFF CACHE BOOL "This is my variable bool")

option ( FLX_DEBUG "with debugging stuff .. but maybe more stable" ON )

option ( FLX_USE_ARPACK "compile with arpack support" ON )
SET( ARPACKPP_INCLUDE_DIR "~/arpack++/include/" CACHE PATH "include directory of arpack++")

option ( FLX_MT19937_INIT_RAND "initialize MT19937 with RAND() instead of TIME" ON )
SET( FLX_MT19937_INIT_CALLS "1000" CACHE STRING "number of initial calls of MT19937 after initization (unsigned integer)")

SET( MTL_INCLUDE_DIR "~/mtl4/" CACHE PATH "include directory of MTL")

option ( FLX_INST_EXAMPLES "install examples" OFF )
SET( FLX_INST_EXAMPLES_DIR "~/examples" CACHE PATH "directory where to install the fesslix examples")

if("${FLX_USE_ARPACK}" STREQUAL "ON")
set ( FLX_USE_ARPACKb 1 )
else("${FLX_USE_ARPACK}" STREQUAL "ON")
set ( FLX_USE_ARPACKb 0 )
endif("${FLX_USE_ARPACK}" STREQUAL "ON")

if("${FLX_MT19937_INIT_RAND}" STREQUAL "ON")
set ( FLX_MT19937_INIT_RANDb 1 )
else("${FLX_MT19937_INIT_RAND}" STREQUAL "ON")
set ( FLX_MT19937_INIT_RANDb 0 )
endif("${FLX_MT19937_INIT_RAND}" STREQUAL "ON")

if("${FLX_DEBUG}" STREQUAL "ON")
set ( FLX_DEBUGb 1 )
else("${FLX_DEBUG}" STREQUAL "ON")
set ( FLX_DEBUGb 0 )
endif("${FLX_DEBUG}" STREQUAL "ON")


if(WIN32)
  set ( FLX_LIB_LINKstat STATIC)
  SET(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -static-libgcc -static-libstdc++")
else(WIN32)
  set ( FLX_LIB_LINKstat SHARED)
endif(WIN32)


add_subdirectory(src)
add_subdirectory(examples)