1 # ***** BEGIN GPL LICENSE BLOCK *****
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public LicenseS
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # Contributor(s): Campbell Barton.
19 # ***** END GPL LICENSE BLOCK *****
22 # -----------------------------------------------------------------------------
23 # Build datatoc executable
28 # SRC_DNA_INC is defined in the parent dir
29 add_executable(datatoc ${SRC})
32 # -----------------------------------------------------------------------------
33 # Build datatoc_icon executable
40 setup_platform_linker_flags()
44 ../../../intern/utfconv
48 add_definitions(-DUSE_STANDALONE)
51 ../blenlib/intern/winstuff_dir.c
52 ../../../intern/utfconv/utfconv.c
57 include_directories(${PNG_INCLUDE_DIRS})
58 link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH})
60 add_executable(datatoc_icon ${SRC})
62 target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
63 # PNG library uses pow() and floow(), so seems -lm is required for proper
65 if(UNIX AND NOT APPLE)
66 target_link_libraries(datatoc_icon m)