tahoma2d/toonz/sources/colorfx/CMakeLists.txt
Ivan Mahonin 429ee8c8e4 Allow to cross compile for Windows with Linux/Mingw (part 3 of 3, cmake) (#1150)
* #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)
2017-05-26 15:00:05 +09:00

41 lines
831 B
CMake

set(HEADERS
../include/colorfx.h
colorfxutils.h
rasterstyles.h
regionstyles.h
strokestyles.h
zigzagstyles.h
)
set(SOURCES
colorfx.cpp
colorfxutils.cpp
rasterstyles.cpp
regionstyles.cpp
strokestyles.cpp
zigzagstyles.cpp
)
add_translation(colorfx ${HEADERS} ${SOURCES})
add_library(colorfx SHARED ${HEADERS} ${SOURCES})
add_definitions(
-D_USRDLL
-DCOLORFX_EXPORTS
-DUSE_MESA
)
if(BUILD_ENV_APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libcolorfx.dylib")
endif()
message("subdir: colorfx")
message("type:" ${CMAKE_SHARED_LIBRARY_SUFFIX})
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
_find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase")
message("FIND_FILE:" ${EXTRA_LIBS})
target_link_libraries(colorfx Qt5::Core ${GL_LIB} ${EXTRA_LIBS})