CMakeLists.txt 947 Bytes
Newer Older
VIGNET Pierre's avatar
VIGNET Pierre committed
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
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

PROJECT(pyCryptoMS)
if (CMAKE_COMPILER_IS_GNUCC)
    SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -fno-omit-frame-pointer -Wall -Werror -Wno-deprecated -g -mtune=native")
    SET(CMAKE_CXX_FLAGS_DEBUG "-Wall -Werror -Wno-deprecated -O0 -ggdb")
    SET(CMAKE_CXX_FLAGS_RELEASE "-Wall -Werror -Wno-deprecated -O3 -g -DNDEBUG -mtune=native -fomit-frame-pointer")
 #-fprofile-generate / -fprofile-use
endif(CMAKE_COMPILER_IS_GNUCC)


find_package(ZLIB  REQUIRED)
link_directories(${ZLIB_LIBRARY})
include_directories(${ZLIB_INCLUDE_DIR})

# added by  MLB for FindOpenMP
set(CMAKE_MODULE_PATH  ${PROJECT_SOURCE_DIR}/cmake_macros)

find_package(OpenMP REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")



#find_package(Perftools)
set(LIBRARY_VERSION "2.9.0")
set(PACKAGE_VERSION "0.1")
VIGNET Pierre's avatar
VIGNET Pierre committed
27
add_definitions(-DVERSION="${LIBRARY_VERSION}")
VIGNET Pierre's avatar
VIGNET Pierre committed
28 29 30 31
add_definitions(-DUSE_GAUSS)


add_subdirectory(src)