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
Campbell Barton 9ece9c
    t32movmsg.h
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
429ee8
if(BUILD_TARGET_WIN)
Campbell Barton a9c3da
    include_directories(
Campbell Barton a9c3da
        SYSTEM
Campbell Barton a9c3da
        ${SDKROOT}/quicktime/QT73SDK/CIncludes
Campbell Barton a9c3da
    )
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
Campbell Barton 9ece9c
    image
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
429ee8
if(BUILD_ENV_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
Campbell Barton 9ece9c
        ${CMAKE_INSTALL_NAME_TOOL} -add_rpath @executable_path/. ${bin}
Campbell Barton 9ece9c
    )
Toshihiro Shimizu 890ddd
endif()