|
|
@ -104,9 +104,9 @@ include(CheckCXXCompilerFlag) |
|
|
|
CHECK_CXX_COMPILER_FLAG("-std=c++11" CXX11_SUPPORTED) |
|
|
|
CHECK_CXX_COMPILER_FLAG("-std=c++11" CXX11_SUPPORTED) |
|
|
|
CHECK_CXX_COMPILER_FLAG("-std=c++0x" CXX0X_SUPPORTED) |
|
|
|
CHECK_CXX_COMPILER_FLAG("-std=c++0x" CXX0X_SUPPORTED) |
|
|
|
if (CXX11_SUPPORTED) |
|
|
|
if (CXX11_SUPPORTED) |
|
|
|
add_definitions( "-std=c++11" ) |
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" ) |
|
|
|
elseif (CXX0X_SUPPORTED) # gcc 4.6 |
|
|
|
elseif (CXX0X_SUPPORTED) # gcc 4.6 |
|
|
|
add_definitions( "-std=c++0x" ) |
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x" ) |
|
|
|
elseif (NOT MSVC) |
|
|
|
elseif (NOT MSVC) |
|
|
|
message(SEND_ERROR "C++11 standart not seems to be supported by compiler. Too old version?") |
|
|
|
message(SEND_ERROR "C++11 standart not seems to be supported by compiler. Too old version?") |
|
|
|
endif () |
|
|
|
endif () |
|
|
@ -138,10 +138,12 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") |
|
|
|
elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR MSYS) |
|
|
|
elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR MSYS) |
|
|
|
list (APPEND DAEMON_SRC "${CMAKE_SOURCE_DIR}/DaemonWin32.cpp") |
|
|
|
list (APPEND DAEMON_SRC "${CMAKE_SOURCE_DIR}/DaemonWin32.cpp") |
|
|
|
list (APPEND DAEMON_SRC "${CMAKE_SOURCE_DIR}/Win32/Win32Service.cpp") |
|
|
|
list (APPEND DAEMON_SRC "${CMAKE_SOURCE_DIR}/Win32/Win32Service.cpp") |
|
|
|
|
|
|
|
list (APPEND DAEMON_SRC "${CMAKE_SOURCE_DIR}/Win32/Resource.rc") |
|
|
|
endif () |
|
|
|
endif () |
|
|
|
|
|
|
|
|
|
|
|
if (WITH_AESNI) |
|
|
|
if (WITH_AESNI) |
|
|
|
add_definitions ( "-maes -DAESNI" ) |
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes" ) |
|
|
|
|
|
|
|
add_definitions ( -DAESNI ) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
# libraries |
|
|
|
# libraries |
|
|
|