-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
28 lines (20 loc) · 1000 Bytes
/
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
project (NUMCPP CXX)
cmake_minimum_required(VERSION 2.8)
SET(CMAKE_BUILD_TYPE DEBUG)
SET(NUMCPP_LIBS fftw3 fftw3f m blas lapack clapack hdf5 cairo numcpp)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x -O3 -msse2 -ffast-math -fomit-frame-pointer -fPIC -fstrict-aliasing -march=core2 -mtune=core2" ) # -fopenmp -ftree-vectorizer-verbose=5
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
#INCLUDE (CheckIncludeFiles)
# usage: CHECK_INCLUDE_FILES (<header> <RESULT_VARIABLE> )
#CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H)
#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
#find_package (CLAPACK)
#if (CLAPACK_FOUND)
# include_directories(${BZIP_INCLUDE_DIRS})
# target_link_libraries (helloworld ${BZIP2_LIBRARIES})
#endif (CLAPACK_FOUND)
add_subdirectory (numcpp)
add_subdirectory (examples)
add_subdirectory (tests)
add_subdirectory (performance)