Diff of /CMakeLists.txt [3af83f] .. [15dc8a]  Maximize  Restore

Switch to unified view

a/CMakeLists.txt b/CMakeLists.txt
...
...
41
  GET_FILENAME_COMPONENT(SOURCE_BASE_DIR ${CMAKE_SOURCE_DIR} PATH CACHE)
41
  GET_FILENAME_COMPONENT(SOURCE_BASE_DIR ${CMAKE_SOURCE_DIR} PATH CACHE)
42
  set(CMAKE_MODULE_PATH ${SOURCE_BASE_DIR}/hugin/CMakeModules)
42
  set(CMAKE_MODULE_PATH ${SOURCE_BASE_DIR}/hugin/CMakeModules)
43
ENDIF(HUGIN_BASE_DIR)
43
ENDIF(HUGIN_BASE_DIR)
44
44
45
IF(WIN32)
45
IF(WIN32)
46
  set(CMAKE_INSTALL_PREFIX "${SOURCE_BASE_DIR}/libpano13" CACHE PATH "Install prefix for hugin SDK")
46
  set(CMAKE_INSTALL_PREFIX "${SOURCE_BASE_DIR}/libpano13" CACHE PATH "Install prefix for libpano")
47
ENDIF(WIN32)
47
ENDIF(WIN32)
48
48
49
include(CheckIncludeFiles)
49
include(CheckIncludeFiles)
50
50
51
##  global setup
51
##  global setup
52
project(libpano13)
52
project(libpano13)
53
53
54
##
55
## wxWidgets
56
##
54
##
57
#  This must come before FINDs for tiff, jpeg, png, zlib to enable
55
#  This must come before FINDs for tiff, jpeg, png, zlib to enable
58
#  finding the wxWidgets distributions of those packages on Windows.
56
#  finding the wxWidgets distributions of those packages on Windows.
59
IF(WIN32)
57
IF(WIN32)
60
  SET(wxWidgets_ROOT_DIR ${SOURCE_BASE_DIR}/wxWidgets-2.8.10)
61
  ADD_DEFINITIONS(-D__Win__)
58
  ADD_DEFINITIONS(-D__Win__)
62
  FIND_PACKAGE(wxWidgets REQUIRED)
63
  set(win_c "tools/compat_win32/getopt.c")
59
  set(win_c "tools/compat_win32/getopt.c")
64
ENDIF(WIN32)
60
ENDIF(WIN32)
65
61
66
62
67
##
63
##
...
...
279
      set(PANO_PATCH_VERSION ${CMAKE_MATCH_3})
275
      set(PANO_PATCH_VERSION ${CMAKE_MATCH_3})
280
    endif()
276
    endif()
281
  endif()
277
  endif()
282
endforeach(_c_l)
278
endforeach(_c_l)
283
279
280
# create TAGS file
281
ADD_CUSTOM_COMMAND( OUTPUT ctags POST_BUILD
282
                   COMMAND ctags-exuberant -e *.c *.h tools/*.c
283
                   WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/
284
                   COMMENT "Build TAGS file"
285
                 )
286
ADD_CUSTOM_TARGET( TAGS DEPENDS ctags)
287
288
284
# set some variables which are used in libpano13.pc.in
289
# set some variables which are used in libpano13.pc.in
285
set(prefix ${CMAKE_INSTALL_PREFIX})
290
set(prefix ${CMAKE_INSTALL_PREFIX})
286
set(exec_prefix ${CMAKE_INSTALL_PREFIX})
291
set(exec_prefix ${CMAKE_INSTALL_PREFIX})
287
set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
292
set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
288
set(includedir ${CMAKE_INSTALL_PREFIX}/include)
293
set(includedir ${CMAKE_INSTALL_PREFIX}/include)
...
...
325
330
326
set(CPACK_SOURCE_PACKAGE_FILE_NAME "libpano13-${PACKAGE_VERSION}")
331
set(CPACK_SOURCE_PACKAGE_FILE_NAME "libpano13-${PACKAGE_VERSION}")
327
332
328
include(CPack)
333
include(CPack)
329
334
330
331
enable_testing()
335
enable_testing()
332
add_subdirectory(tests)
336
add_subdirectory(tests)

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

Sign up for the SourceForge newsletter:





No, thanks