cmake_minimum_required(VERSION 3.8) project(LotRO_Universal_Dat_Library) set(CMAKE_CXX_STANDARD 11) set(SOURCE_FILES DatException.h LotroDatPatcher.h DatFile.cpp DatFile.h BinaryData.cpp BinaryData.h Database.cpp Database.h Subfile.cpp Subfile.h SubDirectory.cpp SubDirectory.h sqlite/sqlite3.c sqlite/sqlite3.h CommonFunctions.h ) add_library(LotroDat SHARED ${SOURCE_FILES}) target_link_libraries(LotroDat ${CMAKE_SOURCE_DIR}/zlib/libzlibstatic.a) # FOR EXTRACTOR USE NEXT LINE add_executable(LotRO_dat_extract_tester ${SOURCE_FILES} extract_test.cpp) target_link_libraries(LotRO_dat_extract_tester ${CMAKE_SOURCE_DIR}/zlib/libzlibstatic.a) # FOR PATCHER USE NEXT LINE add_executable(LotRO_dat_patch_tester ${SOURCE_FILES} patch_test.cpp) target_link_libraries(LotRO_dat_patch_tester ${CMAKE_SOURCE_DIR}/zlib/libzlibstatic.a)