tahoma2d/toonz/sources/t32bitsrv/CMakeLists.txt
Campbell Barton 9ece9c0c92 Cleanup: CMake style
Use parens on newline, avoids diff-noise when adding values.
2016-07-23 04:59:47 +10:00

41 lines
1,008 B
CMake

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
)
endif()
target_link_libraries(t32bitsrv
Qt5::Core
Qt5::Network
tnzcore
image
)
if(APPLE AND PLATFORM EQUAL 32)
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()