|
@@ -17,9 +17,7 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
|
|
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/include)
|
|
include_directories(${CMAKE_SOURCE_DIR}/include)
|
|
-include_directories(${CMAKE_SOURCE_DIR}/Third-party/Yaml)
|
|
+include_directories(${CMAKE_SOURCE_DIR}/include/Third_party)
|
|
-include_directories(${CMAKE_SOURCE_DIR}/Third-party/SQLite)
|
|
|
|
-include_directories(${CMAKE_SOURCE_DIR}/Third-party/Zlib)
|
|
|
|
|
|
|
|
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_OUTPUT_DIR})
|
|
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_OUTPUT_DIR})
|
|
SET(LIBRARY_OUTPUT_PATH ${CMAKE_OUTPUT_DIR})
|
|
SET(LIBRARY_OUTPUT_PATH ${CMAKE_OUTPUT_DIR})
|
|
@@ -35,7 +33,7 @@ set(SOURCE_FILES
|
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/SubDirectory.cpp
|
|
${CMAKE_SOURCE_DIR}/src/SubDirectory.cpp
|
|
|
|
|
|
- ${CMAKE_SOURCE_DIR}/Third-party/SQLite/sqlite3.c
|
|
+ ${CMAKE_SOURCE_DIR}/src/Third_party/SQLite/sqlite3.c
|
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/Subfiles/TextSubfile.cpp
|
|
${CMAKE_SOURCE_DIR}/src/Subfiles/TextSubfile.cpp
|
|
|
|
|
|
@@ -80,12 +78,12 @@ add_executable(LotRO_dat_pat_tester ${SOURCE_FILES} ${CMAKE_SOURCE_DIR}/src/Exam
|
|
|
|
|
|
foreach(TARGET LotroDat_static LotroDat LotRO_dat_extract_tester LotRO_dat_pat_tester)
|
|
foreach(TARGET LotroDat_static LotroDat LotRO_dat_extract_tester LotRO_dat_pat_tester)
|
|
if(MSVC)
|
|
if(MSVC)
|
|
- target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third-Party/Zlib/zlibstatic.lib)
|
|
+ target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/lib/Third_Party/Zlib/zlibstatic.lib)
|
|
- target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third-Party/Yaml/libyaml-cppmt.lib)
|
|
+ target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/lib/Third_Party/Yaml-cpp/libyaml-cppmt.lib)
|
|
target_link_libraries(${TARGET} vcruntime.lib MSVCRT.lib)
|
|
target_link_libraries(${TARGET} vcruntime.lib MSVCRT.lib)
|
|
else(MSVC)
|
|
else(MSVC)
|
|
- target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third-Party/Zlib/libzlibstatic.a)
|
|
+ target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/lib/Third_Party/Zlib/libzlibstatic.a)
|
|
- target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/Third-Party/Yaml/libyaml-cpp.a)
|
|
+ target_link_libraries(${TARGET} ${CMAKE_SOURCE_DIR}/lib/Third_Party/Yaml-cpp/libyaml-cpp.a)
|
|
target_link_libraries(${TARGET} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic)
|
|
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)
|
|
endforeach(TARGET LotroDat_static LotroDat LotRO_dat_extract_tester LotRO_dat_pat_tester)
|