Browse Source

CMake: Add Windows platform libraries when building on Win32.

Sam Edwards 12 years ago
parent
commit
b64feda729
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/express/CMakeLists.txt

+ 4 - 0
panda/src/express/CMakeLists.txt

@@ -130,6 +130,10 @@ target_link_libraries(p3express p3pandabase p3dtool p3dtoolconfig
   ${_TAR_LIBRARY})
 target_interrogate(p3express ALL)
 
+if(WIN32)
+  target_link_libraries(p3express advapi32.lib ws2_32.lib)
+endif()
+
 #add_executable(p3expressTestTypes test_types.cxx)
 #target_link_libraries(p3expressTestTypes p3express p3dtoolutil p3dtool p3prc p3dtoolconfig p3pystub)
 #add_test(p3express_test_types p3expressTestTypes)