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
|
|
Campbell Barton |
9ece9c |
../include/tlog.h
|
|
Campbell Barton |
9ece9c |
)
|
|
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
|
|
Campbell Barton |
9ece9c |
ttcpipserver.cpp
|
|
Campbell Barton |
9ece9c |
)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
add_library(tfarm SHARED ${HEADERS} ${SOURCES})
|
|
Campbell Barton |
f2d492 |
add_definitions(
|
|
Campbell Barton |
f2d492 |
-DTFARM_EXPORTS
|
|
Campbell Barton |
f2d492 |
)
|
|
Campbell Barton |
f2d492 |
|
|
Campbell Barton |
f08982 |
if(APPLE)
|
|
Toshihiro Shimizu |
890ddd |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libtfarm.dylib")
|
|
Campbell Barton |
f08982 |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
message("subdir: tfarm")
|
|
Toshihiro Shimizu |
890ddd |
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
|
|
Toshihiro Shimizu |
890ddd |
|
|
Campbell Barton |
a9c3da |
include_directories(
|
|
Campbell Barton |
a9c3da |
../include
|
|
Campbell Barton |
a9c3da |
)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
if(WIN32)
|
|
Toshihiro Shimizu |
890ddd |
set(EXTRA_LIBS
|
|
Toshihiro Shimizu |
890ddd |
tnzcore tnzbase toonzlib
|
|
Campbell Barton |
9ece9c |
ws2_32.lib
|
|
Campbell Barton |
9ece9c |
)
|
|
Campbell Barton |
22fd3b |
elseif(APPLE)
|
|
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
|
|
Campbell Barton |
9ece9c |
${CMAKE_CURRENT_BINARY_DIR}/../../toonzlib/libtoonzlib.dylib
|
|
Campbell Barton |
9ece9c |
)
|
|
Campbell Barton |
22fd3b |
elseif(UNIX)
|
|
Campbell Barton |
22fd3b |
_find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;toonzlib;tnzext")
|
|
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
|
|
Campbell Barton |
9ece9c |
${GLUT_LIB} ${GL_LIB} ${EXTRA_LIBS}
|
|
Campbell Barton |
9ece9c |
)
|