Fix T39597: Missing entries in VSE Preview menu
[blender.git] / source / blender / datatoc / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
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.
7 #
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.
12 #
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.
16 #
17 # Contributor(s): Campbell Barton.
18 #
19 # ***** END GPL LICENSE BLOCK *****
20
21
22 # -----------------------------------------------------------------------------
23 # Build datatoc executable
24 set(SRC
25         datatoc.c
26 )
27
28 # SRC_DNA_INC is defined in the parent dir
29 add_executable(datatoc ${SRC})
30
31
32 # -----------------------------------------------------------------------------
33 # Build datatoc_icon executable
34
35 if(NOT WITH_HEADLESS)
36
37         set(SRC
38                 datatoc_icon.c
39         )
40
41         if(WIN32)
42                 include_directories(
43                         ../blenlib
44                         ../../../intern/utfconv
45                 )
46
47                 # for winstuff_dir.c
48                 add_definitions(-DUSE_STANDALONE)
49
50                 list(APPEND SRC
51                         ../blenlib/intern/winstuff_dir.c
52                         ../../../intern/utfconv/utfconv.c
53                 )
54         endif()
55
56         include_directories(${PNG_INCLUDE_DIR})
57         link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH})
58
59         add_executable(datatoc_icon ${SRC})
60
61         target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
62 endif()