pso_gc_tools/CMakeLists.txt

33 lines
1.1 KiB
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.16)
2021-03-20 12:56:45 -04:00
project(psogc_tools C)
set(CMAKE_C_STANDARD 99)
include_directories(/usr/local/include)
2021-03-20 11:32:30 -04:00
find_package(Iconv REQUIRED)
find_library(SYLVERANT_LIBRARY sylverant REQUIRED)
# decrypt_packets
2021-03-20 12:38:52 -04:00
add_executable(decrypt_packets decrypt_packets.c utils.c)
target_link_libraries(decrypt_packets ${SYLVERANT_LIBRARY})
2021-03-20 11:32:30 -04:00
# gen_qst_header
2021-03-20 14:04:57 -04:00
add_executable(gen_qst_header gen_qst_header.c textconv.c quests.c utils.c)
2021-03-20 11:32:30 -04:00
target_link_libraries(gen_qst_header ${SYLVERANT_LIBRARY} ${ICONV_LIBRARIES})
target_compile_definitions(gen_qst_header PRIVATE ICONV_CONST=${ICONV_CONST})
target_include_directories(gen_qst_header PRIVATE ${ICONV_INCLUDE_DIR})
# bindat_to_gcdl
add_executable(bindat_to_gcdl bindat_to_gcdl.c quests.c fuzziqer_prs.c utils.c)
target_link_libraries(bindat_to_gcdl ${SYLVERANT_LIBRARY})
2021-03-23 17:38:58 -04:00
# gci_extract
add_executable(gci_extract gci_extract.c quests.c fuzziqer_prs.c utils.c)
target_link_libraries(gci_extract ${SYLVERANT_LIBRARY})
2021-03-25 14:12:24 -04:00
# quest_info
add_executable(quest_info quest_info.c quests.c fuzziqer_prs.c utils.c)
target_link_libraries(quest_info ${SYLVERANT_LIBRARY})