equal
deleted
inserted
replaced
15 #compiles and links actual library |
15 #compiles and links actual library |
16 add_library (physlayer ${PHYSLAYER_SRCS}) |
16 add_library (physlayer ${PHYSLAYER_SRCS}) |
17 set_target_properties(physlayer PROPERTIES |
17 set_target_properties(physlayer PROPERTIES |
18 VERSION 1.0 |
18 VERSION 1.0 |
19 SOVERSION 1.0) |
19 SOVERSION 1.0) |
20 target_link_libraries(physlayer ${SDL2_LIBRARIES} lua physfs) |
20 if(WIN32 AND VCPKG_TOOLCHAIN) |
|
21 target_link_libraries(physlayer SDL2::SDL2 lua physfs) |
|
22 else() |
|
23 target_link_libraries(physlayer ${SDL2_LIBRARIES} lua physfs) |
|
24 endif() |
21 install(TARGETS physlayer RUNTIME DESTINATION ${target_binary_install_dir} |
25 install(TARGETS physlayer RUNTIME DESTINATION ${target_binary_install_dir} |
22 LIBRARY DESTINATION ${target_library_install_dir} |
26 LIBRARY DESTINATION ${target_library_install_dir} |
23 ARCHIVE DESTINATION ${target_library_install_dir}) |
27 ARCHIVE DESTINATION ${target_library_install_dir}) |
24 get_target_property(physlayer_fullpath physlayer LOCATION) |
28 get_target_property(physlayer_fullpath physlayer LOCATION) |
25 |
29 |