[b0f579]: tools / CMakeLists.txt  Maximize  Restore  History

Download this file

43 lines (34 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This file is part of libpano13, the hugin build environment.
# Licence details can be found in the file COPYING.
#
# Copyright (c) 2009 Kornel Benko, <Kornel.Benko@berlin.de>
#
project(tools)
set(commands PTtiff2psd PTtiffdump PTcrop PTblender
PTroller PTuncrop PToptimizer PTmender PTinfo PTmasker)
if (HAVE_JAVA)
# this one depends on java (uses writeProject() from ptpicker)
list(APPEND commands PTAInterpolate)
endif()
# panoinfo needs windows.h
set(extra_commands)
macro(make_command exe_name source_name)
list(APPEND extra_commands ${exe_name})
add_executable(${exe_name} ${source_name})
target_link_libraries(${exe_name} ${_pano_target} ${_common_libs})
install(TARGETS ${exe_name} DESTINATION bin CONFIGURATIONS Release RelWithDebInfo MinSizeRel)
endmacro()
if(WIN32)
list(APPEND commands panoinfo)
IF(BUILD_DLL)
add_library(getopt STATIC compat_win32/getopt.c compat_win32/getopt.h)
list(APPEND _common_libs getopt)
ENDIF(BUILD_DLL)
else()
make_command(panoinfo panoinfo_unix.c)
endif()
include_directories(${TOP_SRC_DIR})
foreach(_cmd ${commands})
make_command(${_cmd} ${_cmd}.c)
endforeach(_cmd)
add_custom_target(tools DEPENDS ${extra_commands})

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks