CMake: Add Windows platform libraries when building on Win32.

This commit is contained in:
Sam Edwards 2014-02-05 23:29:49 -07:00
parent 74bc124867
commit b64feda729
1 changed files with 4 additions and 0 deletions

View File

@ -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)