64,649
社区成员
发帖
与我相关
我的任务
分享
//这是CMakeLists.txt里面的描述:我的DInput之类的是需要安装还是直接指定目录啊?
#
# Windows
#
if(WIN32)
find_package(DInput)
if(DINPUT_FOUND)
# At least some copies of dinput.h redefine some types multiple times.
# We must add the directory as a system directory so that the compiler
# will suppress such errors.
include_directories(SYSTEM ${DINPUT_INCLUDE_DIR})
else(DINPUT_FOUND)
message(FATAL_ERROR
"Windows port requires DirectInput (not found).")
endif(DINPUT_FOUND)
if(WANT_D3D)
find_package(D3D9)
if(D3D9_FOUND)
set(SUPPORT_D3D 1)
endif(D3D9_FOUND)
endif(WANT_D3D)
if(SUPPORT_D3D)
set(ALLEGRO_CFG_D3D 1)
if(WANT_D3D9EX)
set(ALLEGRO_CFG_D3D9EX 1)
endif(WANT_D3D9EX)
endif(SUPPORT_D3D)
endif(WIN32)
1>LINK : fatal error LNK1181: 无法打开输入文件“..\..\..\lib\msvc\alleg.lib”
CMake Error at CMakeLists.txt:637 (message):
Windows port requires DirectInput (not found).