From 317ff02648d76eb875a1826ef7fcc72b8e497235 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 30 Sep 2021 18:02:36 +0200 Subject: Added dx9 and win32 libraries to linker --- Stars45/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Stars45/CMakeLists.txt') diff --git a/Stars45/CMakeLists.txt b/Stars45/CMakeLists.txt index 355c6ef..d80842b 100644 --- a/Stars45/CMakeLists.txt +++ b/Stars45/CMakeLists.txt @@ -276,7 +276,9 @@ add_executable( WepView.cpp Window.cpp ) +set(WINDOWSSDK_LIBPATH "C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x86") set(WINDOWSSDK_PATH "C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um") +set_target_properties(Stars45 PROPERTIES WIN32_EXECUTABLE Yes) target_include_directories( Stars45 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} @@ -298,6 +300,16 @@ target_link_libraries( PUBLIC Ogg::ogg PUBLIC Png::png PUBLIC Opcode # FIXME: Add opcode to a namespace. + PUBLIC ${WINDOWSSDK_LIBPATH}/Ws2_32.lib + PUBLIC ${WINDOWSSDK_LIBPATH}/Vfw32.lib + PUBLIC ${WINDOWSSDK_LIBPATH}/wsock32.lib + PUBLIC ${WINDOWSSDK_LIBPATH}/winmm.lib + PUBLIC ${WINDOWSSDK_LIBPATH}/version.lib + PUBLIC $ENV{DXSDK_DIR}/Lib/x86/dinput8.lib + PUBLIC $ENV{DXSDK_DIR}/Lib/x86/dsound.lib + PUBLIC $ENV{DXSDK_DIR}/Lib/x86/d3d9.lib + PUBLIC $ENV{DXSDK_DIR}/Lib/x86/d3dx9.lib + PUBLIC $ENV{DXSDK_DIR}/Lib/x86/dxguid.lib ) target_compile_definitions( Stars45 -- cgit v1.1