|
@@ -80,13 +80,13 @@ add_executable(LotRO_dat_extract_tester ${SOURCE_FILES} ${HEADER_FILES} ${CMAKE_
|
|
|
add_executable(LotRO_dat_pat_tester ${SOURCE_FILES} ${HEADER_FILES} ${CMAKE_SOURCE_DIR}/src/Examples/patcher_example.cpp)
|
|
|
|
|
|
foreach(TARGET LotroDat_static LotroDat LotRO_dat_extract_tester LotRO_dat_pat_tester)
|
|
|
- if(MSVC)
|
|
|
- target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third_Party/Zlib/zlibstatic.lib)
|
|
|
- target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third_Party/Yaml-cpp/libyaml-cppmt.lib)
|
|
|
- target_link_libraries(${TARGET} vcruntime.lib MSVCRT.lib)
|
|
|
- else(MSVC)
|
|
|
- target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third_Party/Zlib/libzlibstatic.a)
|
|
|
- target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third_Party/Yaml-cpp/libyaml-cpp.a)
|
|
|
+ #if(MSVC)
|
|
|
+ # target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third_Party/Zlib/zlibstatic.lib)
|
|
|
+ # target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third_Party/Yaml-cpp/libyaml-cppmt.lib)
|
|
|
+ # target_link_libraries(${TARGET} vcruntime.lib MSVCRT.lib)
|
|
|
+ #else(MSVC)
|
|
|
+ target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third_Party/Zlib/lib/libzlibstatic.a)
|
|
|
+ target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third_Party/Yaml-cpp/lib/libyaml-cpp.a)
|
|
|
target_link_libraries(${TARGET} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic)
|
|
|
- endif(MSVC)
|
|
|
+ #endif(MSVC)
|
|
|
endforeach(TARGET LotroDat_static LotroDat LotRO_dat_extract_tester LotRO_dat_pat_tester)
|