|
Toshihiro Shimizu |
890ddd |
set(MOC_HEADERS
|
|
Toshihiro Shimizu |
890ddd |
../include/tcacheresourcepool.h
|
|
Campbell Barton |
9ece9c |
../common/tfx/trendererP.h
|
|
Campbell Barton |
9ece9c |
)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
set(HEADERS ${MOC_HEADERS}
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_capability.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_conversion.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_error.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_global_def.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_state.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_statePD.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_util.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_utilP.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_utilPD.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_win.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_winPD.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwainP.h
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/twain.h
|
|
Toshihiro Shimizu |
890ddd |
../include/permissionsmanager.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tscanner.h
|
|
Toshihiro Shimizu |
890ddd |
tscanner/tscannerutil.h
|
|
Toshihiro Shimizu |
890ddd |
tscanner/tscannerepson.h
|
|
Toshihiro Shimizu |
890ddd |
tscanner/tscannertwain.h
|
|
Toshihiro Shimizu |
890ddd |
tscanner/TScannerIO/TScannerIO.h
|
|
Toshihiro Shimizu |
890ddd |
tscanner/TScannerIO/TUSBScannerIO.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tcubicbezier.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tdoublekeyframe.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tdoubleparam.h
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tdoubleparamfile.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tdoubleparamrelayproperty.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tfxparam.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tnotanimatableparam.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tparam.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tparamchange.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tparamcontainer.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tparamset.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tspectrumparam.h
|
|
Toshihiro Shimizu |
890ddd |
../include/ttonecurveparam.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tcolumnset.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tbasefx.h
|
|
Toshihiro Shimizu |
890ddd |
../include/texternfx.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tfx.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tfxattributes.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tcacheresource.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tpassivecachemanager.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tpredictivecachemanager.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tfxcachemanager.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tfxutil.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tmacrofx.h
|
|
Toshihiro Shimizu |
890ddd |
../include/trenderer.h
|
|
Toshihiro Shimizu |
890ddd |
../include/trenderresourcemanager.h
|
|
Toshihiro Shimizu |
890ddd |
../include/ttzpimagefx.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tcli.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tcolorutils.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tparamundo.h
|
|
Toshihiro Shimizu |
890ddd |
../include/ttimer.h
|
|
Toshihiro Shimizu |
890ddd |
../include/ttest.h
|
|
Toshihiro Shimizu |
890ddd |
../include/texpression.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tgrammar.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tparser.h
|
|
Toshihiro Shimizu |
890ddd |
../include/ttokenizer.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tunit.h
|
|
Campbell Barton |
9ece9c |
../include/tzeraryfx.h
|
|
Campbell Barton |
9ece9c |
)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
set(SOURCES
|
|
Toshihiro Shimizu |
890ddd |
permissionsmanager.cpp
|
|
Toshihiro Shimizu |
890ddd |
stringtable.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tcubicbezier.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tdoublekeyframe.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tdoubleparam.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tdoubleparamfile.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tdoubleparamrelayproperty.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tnotanimatableparam.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tparam.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tparamcontainer.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tparamset.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tpixelparam.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tpointparam.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/trangeparam.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/tspectrumparam.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tparam/ttonecurveparam.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/txsheet/tcolumnset.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/binaryFx.cpp
|
|
Toshihiro Shimizu |
890ddd |
texternfx.cpp
|
|
Arseniy Shestakov |
5e9e96 |
../common/tfx/tfx.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/tfxcachemanager.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/tcacheresource.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/tcacheresourcepool.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/tpassivecachemanager.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/tpredictivecachemanager.cpp
|
|
Toshihiro Shimizu |
890ddd |
tfxattributes.cpp
|
|
Toshihiro Shimizu |
890ddd |
tfxutil.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/tmacrofx.cpp
|
|
Toshihiro Shimizu |
890ddd |
trasterfx.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/trenderer.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/trenderresourcemanager.cpp
|
|
Arseniy Shestakov |
5e9e96 |
../common/tfx/ttzpimagefx.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/unaryFx.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tfx/zeraryFx.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tapptools/tcli.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tapptools/tcolorutils.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tapptools/tparamundo.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tapptools/ttimer.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/ttest/ttest.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/expressions/texpression.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/expressions/tgrammar.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/expressions/tparser.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/expressions/ttokenizer.cpp
|
|
Toshihiro Shimizu |
890ddd |
../common/tunit/tunit.cpp
|
|
Toshihiro Shimizu |
890ddd |
tscanner/tscannerutil.cpp
|
|
Campbell Barton |
9ece9c |
tscanner/tscannerepson.cpp
|
|
Campbell Barton |
9ece9c |
)
|
|
Toshihiro Shimizu |
890ddd |
|
|
|
429ee8 |
if(BUILD_TARGET_WIN)
|
|
Toshihiro Shimizu |
890ddd |
set(SOURCES ${SOURCES}
|
|
Campbell Barton |
9ece9c |
tscanner/TScannerIO/TUSBScannerIO_W.cpp
|
|
Campbell Barton |
9ece9c |
)
|
|
Campbell Barton |
f08982 |
else()
|
|
Toshihiro Shimizu |
890ddd |
set(SOURCES ${SOURCES}
|
|
Campbell Barton |
9ece9c |
tscanner/TScannerIO/TUSBScannerIO_M.cpp
|
|
Campbell Barton |
9ece9c |
)
|
|
Campbell Barton |
f08982 |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
set(OBJCSOURCES
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_capability.c
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_conversion.c
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_error.c
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_state.c
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_util.c
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_win.c
|
|
Toshihiro Shimizu |
890ddd |
tscanner/tscanner.cpp
|
|
Campbell Barton |
9ece9c |
tscanner/tscannertwain.cpp
|
|
Campbell Barton |
9ece9c |
)
|
|
Toshihiro Shimizu |
890ddd |
|
|
|
429ee8 |
if(BUILD_TARGET_WIN)
|
|
Toshihiro Shimizu |
890ddd |
set(OBJCSOURCES ${OBJCSOURCES}
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_stateW.c
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_utilW.c
|
|
Campbell Barton |
9ece9c |
../common/twain/ttwain_winW.c
|
|
Campbell Barton |
9ece9c |
)
|
|
|
429ee8 |
elseif(BUILD_TARGET_APPLE)
|
|
Toshihiro Shimizu |
890ddd |
set(OBJCSOURCES ${OBJCSOURCES}
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_stateM.c
|
|
Toshihiro Shimizu |
890ddd |
../common/twain/ttwain_utilM.c
|
|
Campbell Barton |
9ece9c |
../common/twain/ttwain_winM.c
|
|
Campbell Barton |
9ece9c |
)
|
|
|
429ee8 |
elseif(BUILD_TARGET_UNIX)
|
|
Campbell Barton |
22fd3b |
set(OBJCSOURCES ${OBJCSOURCES}
|
|
Campbell Barton |
22fd3b |
../common/twain/ttwain_stateX.c
|
|
Campbell Barton |
22fd3b |
../common/twain/ttwain_utilX.c
|
|
Campbell Barton |
9ece9c |
../common/twain/ttwain_winX.c
|
|
Campbell Barton |
9ece9c |
)
|
|
Campbell Barton |
f08982 |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
|
429ee8 |
if(BUILD_ENV_APPLE)
|
|
Toshihiro Shimizu |
890ddd |
#set_source_files_properties(${OBJCSOURCES} PROPERTIES LANGUAGE OBJCXX)
|
|
Toshihiro Shimizu |
890ddd |
set_source_files_properties(${OBJCSOURCES} PROPERTIES COMPILE_FLAGS "-x objective-c++")
|
|
Toshihiro Shimizu |
890ddd |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
qt5_wrap_cpp(SOURCES ${MOC_HEADERS})
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
add_library(tnzbase SHARED ${HEADERS} ${SOURCES} ${OBJCSOURCES})
|
|
Toshihiro Shimizu |
890ddd |
|
|
|
429ee8 |
if(BUILD_ENV_APPLE)
|
|
Toshihiro Shimizu |
890ddd |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libtnzbase.dylib")
|
|
shun-iwasawa |
5a2ff6 |
add_dependencies(tnzbase tnzcore)
|
|
Campbell Barton |
f08982 |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
Campbell Barton |
f2d492 |
add_definitions(
|
|
Campbell Barton |
f2d492 |
-DTNZBASE_EXPORTS
|
|
Campbell Barton |
f2d492 |
-DTPARAM_EXPORTS
|
|
Campbell Barton |
f2d492 |
-DTXSHEET_EXPORTS
|
|
Campbell Barton |
f2d492 |
-DTFX_EXPORTS
|
|
Campbell Barton |
f2d492 |
-DTAPPTOOLS_EXPORTS
|
|
Campbell Barton |
f2d492 |
-DTTEST_EXPORTS
|
|
Campbell Barton |
f2d492 |
)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
message("subdir: tnzbase")
|
|
Toshihiro Shimizu |
890ddd |
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
|
|
Toshihiro Shimizu |
890ddd |
#message("Lib: " ${LIBRARY_OUTPUT_PATH})
|
|
Toshihiro Shimizu |
890ddd |
#message("Exe: " ${EXECUTABLE_OUTPUT_PATH})
|
|
Toshihiro Shimizu |
890ddd |
#message("Sources:" ${SOURCES})
|
|
Toshihiro Shimizu |
890ddd |
|
|
Campbell Barton |
a9c3da |
include_directories(
|
|
Campbell Barton |
a9c3da |
SYSTEM
|
|
Campbell Barton |
a9c3da |
../common/flash
|
|
Campbell Barton |
a9c3da |
${SDKROOT}/libusb/libusb-1.0.9/include
|
|
Campbell Barton |
a9c3da |
)
|
|
Toshihiro Shimizu |
890ddd |
|
|
|
429ee8 |
if(BUILD_ENV_MSVC)
|
|
Toshihiro Shimizu |
890ddd |
set(EXTRA_LIBS
|
|
Campbell Barton |
9ece9c |
tnzcore
|
|
Campbell Barton |
9ece9c |
)
|
|
|
429ee8 |
elseif(BUILD_ENV_APPLE)
|
|
Toshihiro Shimizu |
890ddd |
find_library(TWAIN_LIB TWAIN)
|
|
Toshihiro Shimizu |
890ddd |
find_library(IOKIT_LIB IOKit)
|
|
Toshihiro Shimizu |
890ddd |
find_library(COCOA_LIB Cocoa)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
set(EXTRA_LIBS
|
|
John Dancel |
83fae9 |
"$<target_file:tnzcore>"</target_file:tnzcore>
|
|
Toshihiro Shimizu |
890ddd |
${USB_LIB}
|
|
Toshihiro Shimizu |
890ddd |
${TWAIN_LIB}
|
|
Toshihiro Shimizu |
890ddd |
${IOKIT_LIB}
|
|
Campbell Barton |
9ece9c |
${COCOA_LIB}
|
|
Campbell Barton |
9ece9c |
)
|
|
|
429ee8 |
elseif(BUILD_ENV_UNIXLIKE)
|
|
Campbell Barton |
22fd3b |
_find_toonz_library(EXTRA_LIBS "tnzcore")
|
|
|
429ee8 |
if(NOT BUILD_TARGET_WIN)
|
|
|
429ee8 |
set(EXTRA_LIBS ${EXTRA_LIBS}
|
|
|
429ee8 |
${SDL_LIB_LIBRARIES}
|
|
|
429ee8 |
)
|
|
|
429ee8 |
include_directories(
|
|
|
429ee8 |
SYSTEM
|
|
|
429ee8 |
${SDL_LIB_INCLUDE_DIRS}
|
|
|
429ee8 |
)
|
|
|
429ee8 |
endif()
|
|
Toshihiro Shimizu |
890ddd |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
target_link_libraries(tnzbase Qt5::Core Qt5::Gui ${EXTRA_LIBS})
|