summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Stars45/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
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