Blame toonz/sources/toonzfarm/tfarm/CMakeLists.txt
|
Toshihiro Shimizu |
890ddd |
set(HEADERS
|
|
Toshihiro Shimizu |
890ddd |
../include/service.h
|
|
Toshihiro Shimizu |
890ddd |
../../include/tfarmcontroller.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tfarmexecutor.h
|
|
Toshihiro Shimizu |
890ddd |
../../include/tfarmplatforms.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tfarmproxy.h
|
|
Toshihiro Shimizu |
890ddd |
../../include/tfarmserver.h
|
|
Toshihiro Shimizu |
890ddd |
../../include/tfarmtask.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tlog.h)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
set(SOURCES
|
|
Toshihiro Shimizu |
890ddd |
service.cpp
|
|
Toshihiro Shimizu |
890ddd |
tfarmcontroller_c.cpp
|
|
Toshihiro Shimizu |
890ddd |
tfarmexecutor.cpp
|
|
Toshihiro Shimizu |
890ddd |
tfarmproxy.cpp
|
|
Toshihiro Shimizu |
890ddd |
tfarmserver_c.cpp
|
|
Toshihiro Shimizu |
890ddd |
tfarmserverstub.cpp
|
|
Toshihiro Shimizu |
890ddd |
tfarmtask.cpp
|
|
Toshihiro Shimizu |
890ddd |
tlog.cpp
|
|
Toshihiro Shimizu |
890ddd |
ttcpipclient.cpp
|
|
Toshihiro Shimizu |
890ddd |
ttcpipserver.cpp)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
add_library(tfarm SHARED ${HEADERS} ${SOURCES})
|
|
Toshihiro Shimizu |
890ddd |
add_definitions(-DTFARM_EXPORTS)
|
|
Toshihiro Shimizu |
890ddd |
if (APPLE)
|
|
Toshihiro Shimizu |
890ddd |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libtfarm.dylib")
|
|
Toshihiro Shimizu |
890ddd |
endif (APPLE)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
message("subdir: tfarm")
|
|
Toshihiro Shimizu |
890ddd |
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
include_directories(../include)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
if(WIN32)
|
|
Toshihiro Shimizu |
890ddd |
set(EXTRA_LIBS
|
|
Toshihiro Shimizu |
890ddd |
tnzcore tnzbase toonzlib
|
|
Toshihiro Shimizu |
890ddd |
ws2_32.lib)
|
|
Toshihiro Shimizu |
890ddd |
else()
|
|
Toshihiro Shimizu |
890ddd |
set(EXTRA_LIBS
|
|
Toshihiro Shimizu |
890ddd |
${CMAKE_CURRENT_BINARY_DIR}/../../tnzcore/libtnzcore.dylib
|
|
Toshihiro Shimizu |
890ddd |
${CMAKE_CURRENT_BINARY_DIR}/../../tnzbase/libtnzbase.dylib
|
|
Toshihiro Shimizu |
890ddd |
${CMAKE_CURRENT_BINARY_DIR}/../../toonzlib/libtoonzlib.dylib)
|
|
Toshihiro Shimizu |
890ddd |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
target_link_libraries(tfarm
|
|
Toshihiro Shimizu |
890ddd |
Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Network
|
|
Toshihiro Shimizu |
890ddd |
${GLUT_LIB} ${GL_LIB} ${EXTRA_LIBS})
|