tahoma2d/toonz/sources/t32bitsrv/CMakeLists.txt

38 lines
1,001 B
CMake
Raw Normal View History

2016-03-19 06:57:51 +13:00
add_executable(t32bitsrv
main.cpp
t323gpmsg.cpp
t323gpmsg.h
t32fontmsg.cpp
t32fontmsg.h
t32movmsg.cpp
t32movmsg.h)
if(WIN32)
include_directories(
SYSTEM
${SDKROOT}/quicktime/QT73SDK/CIncludes
)
2016-03-19 06:57:51 +13:00
endif()
target_link_libraries(t32bitsrv
Qt5::Core
Qt5::Network
tnzcore
image)
if(APPLE AND PLATFORM EQUAL 32)
2016-03-19 06:57:51 +13:00
get_target_property(bin t32bitsrv LOCATION)
get_filename_component(bindir ${bin} DIRECTORY)
get_target_property(loc tnzcore LOCATION)
add_custom_command(TARGET t32bitsrv POST_BUILD COMMAND cp ${loc} ${bindir})
get_target_property(loc image LOCATION)
add_custom_command(TARGET t32bitsrv POST_BUILD COMMAND cp ${loc} ${bindir})
get_target_property(loc tnzbase LOCATION)
add_custom_command(TARGET t32bitsrv POST_BUILD COMMAND cp ${loc} ${bindir})
add_custom_command(TARGET t32bitsrv
POST_BUILD COMMAND
${CMAKE_INSTALL_NAME_TOOL} -add_rpath @executable_path/. ${bin})
endif()