Update CMakeLists.

fix windows builds
This commit is contained in:
Mahmood(Thunder07) 2017-02-10 00:16:04 +00:00
parent e3e3280009
commit d6b0029c8b
2 changed files with 16 additions and 0 deletions

4
Source/ui_win32/afxres.h Normal file
View File

@ -0,0 +1,4 @@
// Res.rc needs to include afxres.h which is only found in specific Visual studio editions
// this is used as a work around as winres.h can be used as a replacement
// but Res.rc would automatically be overwritten, while this wont.
#include "winres.h"

View File

@ -120,6 +120,18 @@ if(WIN32)
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../Nuanceur/include)
list(APPEND PROJECT_LIBS Nuanceur)
find_package(DirectX9 REQUIRED)
list(APPEND PROJECT_LIBS ${DirectX_D3D9_LIBRARY})
list(APPEND PROJECT_LIBS ${DirectX_D3DX9_LIBRARY})
include_directories(${DirectX_D3D9_INCLUDE_DIR} ${DirectX_D3DX9_INCLUDE_DIR})
find_package(GDIPLUS REQUIRED)
list(APPEND PROJECT_LIBS ${GDIPLUS_LIBRARIES})
include_directories(${GDIPLUS_INCLUDE_DIR})
list(APPEND PROJECT_LIBS comctl32 uxtheme opengl32 glu32 dxguid dinput8 vfw32 winmm gdiplus d3dcompiler Boost::date_time)
endif()
if (NOT TARGET Boost::boost)