diff --git a/Win32/Resource.rc b/Win32/Resource.rc index a4fa890b..e8b77bef 100644 Binary files a/Win32/Resource.rc and b/Win32/Resource.rc differ diff --git a/Win32/resource.h b/Win32/resource.h index 661a5baf..7bb73d38 100644 Binary files a/Win32/resource.h and b/Win32/resource.h differ diff --git a/Win32/winres.h b/Win32/winres.h new file mode 100644 index 00000000..e9afee91 --- /dev/null +++ b/Win32/winres.h @@ -0,0 +1,6 @@ +#ifndef WINRES_H__ +#define WINRES_H__ + +#include + +#endif diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index 46213363..1a378cbf 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -104,9 +104,9 @@ include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-std=c++11" CXX11_SUPPORTED) CHECK_CXX_COMPILER_FLAG("-std=c++0x" CXX0X_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 - add_definitions( "-std=c++0x" ) + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x" ) elseif (NOT MSVC) message(SEND_ERROR "C++11 standart not seems to be supported by compiler. Too old version?") endif () @@ -138,10 +138,12 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR MSYS) 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/Resource.rc") endif () if (WITH_AESNI) - add_definitions ( "-maes -DAESNI" ) + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes" ) + add_definitions ( -DAESNI ) endif() # libraries