429ee8c8e4
* #mingw #cmake: rules for native and cross compilation * #mingw #cmake: fix CMakeLists.txt for using with MinGW under Windows * #mingw #cmake: fix typo (BUILD_ENV_WIN -> BUILD_ENV_MSVC)
40 lines
1 KiB
CMake
40 lines
1 KiB
CMake
add_executable(t32bitsrv
|
|
main.cpp
|
|
t323gpmsg.cpp
|
|
t323gpmsg.h
|
|
t32fontmsg.cpp
|
|
t32fontmsg.h
|
|
t32movmsg.cpp
|
|
t32movmsg.h
|
|
)
|
|
|
|
if(BUILD_TARGET_WIN)
|
|
include_directories(
|
|
SYSTEM
|
|
${SDKROOT}/quicktime/QT73SDK/CIncludes
|
|
)
|
|
endif()
|
|
|
|
target_link_libraries(t32bitsrv
|
|
Qt5::Core
|
|
Qt5::Network
|
|
tnzcore
|
|
image
|
|
)
|
|
|
|
if(BUILD_ENV_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()
|