Toshihiro Shimizu 890ddd
add_executable(t32bitsrv
Toshihiro Shimizu 890ddd
    main.cpp
Toshihiro Shimizu 890ddd
    t323gpmsg.cpp
Toshihiro Shimizu 890ddd
    t323gpmsg.h
Toshihiro Shimizu 890ddd
    t32fontmsg.cpp
Toshihiro Shimizu 890ddd
    t32fontmsg.h
Toshihiro Shimizu 890ddd
    t32movmsg.cpp
Toshihiro Shimizu 890ddd
    t32movmsg.h)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
if (WIN32)
Toshihiro Shimizu 890ddd
    include_directories(${SDKROOT}/quicktime/QT73SDK/CIncludes)
Toshihiro Shimizu 890ddd
endif()
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
target_link_libraries(t32bitsrv
Toshihiro Shimizu 890ddd
    Qt5::Core
Toshihiro Shimizu 890ddd
    Qt5::Network
Toshihiro Shimizu 890ddd
    tnzcore
Toshihiro Shimizu 890ddd
    image)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
if (APPLE AND PLATFORM EQUAL 32)
Toshihiro Shimizu 890ddd
    get_target_property(bin t32bitsrv LOCATION)
Toshihiro Shimizu 890ddd
    get_filename_component(bindir ${bin} DIRECTORY)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
    get_target_property(loc tnzcore LOCATION)
Toshihiro Shimizu 890ddd
    add_custom_command(TARGET t32bitsrv POST_BUILD COMMAND cp ${loc} ${bindir})
Toshihiro Shimizu 890ddd
    get_target_property(loc image LOCATION)
Toshihiro Shimizu 890ddd
    add_custom_command(TARGET t32bitsrv POST_BUILD COMMAND cp ${loc} ${bindir})
Toshihiro Shimizu 890ddd
    get_target_property(loc tnzbase LOCATION)
Toshihiro Shimizu 890ddd
    add_custom_command(TARGET t32bitsrv POST_BUILD COMMAND cp ${loc} ${bindir})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
    add_custom_command(TARGET t32bitsrv
Toshihiro Shimizu 890ddd
        POST_BUILD COMMAND
Toshihiro Shimizu 890ddd
        ${CMAKE_INSTALL_NAME_TOOL} -add_rpath @executable_path/. ${bin})
Toshihiro Shimizu 890ddd
endif()