Diff of /src/hugin1/ptbatcher/CMakeLists.txt [0f0548] .. [aacb50]  Maximize  Restore

  Switch to unified view

a/src/hugin1/ptbatcher/CMakeLists.txt b/src/hugin1/ptbatcher/CMakeLists.txt
...
...
3
add_executable(PTBatcher PTBatcher.cpp PTBatcher.h PTBatcher_rc.rc Batch.cpp Batch.h RunStitchFrame.cpp RunStitchFrame.h ProjectArray.cpp ProjectArray.h)
3
add_executable(PTBatcher PTBatcher.cpp PTBatcher.h PTBatcher_rc.rc Batch.cpp Batch.h RunStitchFrame.cpp RunStitchFrame.h ProjectArray.cpp ProjectArray.h)
4
target_link_libraries(${PROGNAME} huginbasewx ${common_libs} ${image_libs} ${wxWidgets_LIBRARIES})
4
target_link_libraries(${PROGNAME} huginbasewx ${common_libs} ${image_libs} ${wxWidgets_LIBRARIES})
5
install(TARGETS PTBatcher
5
install(TARGETS PTBatcher
6
        DESTINATION ${BINDIR})
6
        DESTINATION ${BINDIR})
7
7
8
#--------------------------------

8
#--------------------------------
9
9
10
set( PROGNAME_GUI PTBatcherGUI )

10
set(PROGNAME_GUI PTBatcherGUI )
11
set(PTBATCHERGUI_SOURCE 
12
      PTBatcherGUI.cpp Batch.cpp RunStitchFrame.cpp ProjectArray.cpp ProjectListBox.cpp BatchFrame.cpp FindPanoDialog.cpp FailedProjectsDialog.cpp)
13
set( PTBATCHERGUI_HEADER PTBatcherGUI.h Batch.h RunStitchFrame.h ProjectArray.h ProjectListBox.h
14
                         BatchFrame.h DirTraverser.h FindPanoDialog.h FailedProjectsDialog.h PTBatcherGUI_rc.rc)
11
IF (WIN32)

15
IF (WIN32)
12
  add_executable(${PROGNAME_GUI} WIN32 PTBatcherGUI.cpp PTBatcherGUI.h PTBatcherGUI_rc.rc Batch.cpp Batch.h RunStitchFrame.cpp RunStitchFrame.h ProjectArray.cpp ProjectArray.h ProjectListBox.cpp ProjectListBox.h BatchFrame.cpp BatchFrame.h DirTraverser.h)
16
  add_executable(${PROGNAME_GUI} WIN32 ${PTBATCHERGUI_SOURCE} ${PTBATCHERGUI_HEADER})
13
ELSEIF(APPLE)

17
ELSEIF(APPLE)
14
  set( PROGNAME PTBatcherGUI )

18
  set( PROGNAME PTBatcherGUI )
15
  set( MACOSX_BUNDLE_EXTENSION pto)

19
  set( MACOSX_BUNDLE_EXTENSION pto)
16
  set( MACOSX_BUNDLE_ICON_FILE ../hugin/Hugin.icns )

20
  set( MACOSX_BUNDLE_ICON_FILE ../hugin/Hugin.icns )
17
  set( MACOSX_BUNDLE_TYPE_ICON_FILE ../hugin/HuginFiles.icns )

21
  set( MACOSX_BUNDLE_TYPE_ICON_FILE ../hugin/HuginFiles.icns )
18
  set( MACOSX_BUNDLE_MIME_TYPE application/x-ptoptimizer-script )

22
  set( MACOSX_BUNDLE_MIME_TYPE application/x-ptoptimizer-script )
19
  set( MACOSX_BUNDLE_TYPE_NAME "Hugin Project" )

23
  set( MACOSX_BUNDLE_TYPE_NAME "Hugin Project" )
20
  set( MACOSX_BUNDLE_TYPE_ROLE Viewer )

24
  set( MACOSX_BUNDLE_TYPE_ROLE Viewer )
21
  set( MACOSX_BUNDLE_VERSION ${V_MAJOR}.${V_MINOR}.${V_PATCH} )

25
  set( MACOSX_BUNDLE_VERSION ${V_MAJOR}.${V_MINOR}.${V_PATCH} )
22
  set( MACOSX_BUNDLE_SHORT_VERSION_STRING ${MACOSX_BUNDLE_VERSION})

26
  set( MACOSX_BUNDLE_SHORT_VERSION_STRING ${MACOSX_BUNDLE_VERSION})
23
  set( MACOSX_BUNDLE_LONG_VERSION_STRING "Version ${MACOSX_BUNDLE_VERSION}" )

27
  set( MACOSX_BUNDLE_LONG_VERSION_STRING "Version ${MACOSX_BUNDLE_VERSION}" )
24
  set( MACOSX_BUNDLE_GUI_IDENTIFIER net.sourceforge.hugin)

28
  set( MACOSX_BUNDLE_GUI_IDENTIFIER net.sourceforge.hugin)
25
  set( MACOSX_BUNDLE_INFO_STRING "PTBatcherGUI ${MACOSX_BUNDLE_VERSION}" )

29
  set( MACOSX_BUNDLE_INFO_STRING "PTBatcherGUI ${MACOSX_BUNDLE_VERSION}" )
26
  set( MACOSX_BUNDLE_BUNDLE_NAME "PTBatcherGUI" )

30
  set( MACOSX_BUNDLE_BUNDLE_NAME "PTBatcherGUI" )
27
  set( MACOSX_BUNDLE_COPYRIGHT "Copyright 2007 Pablo d'Angelo" )

31
  set( MACOSX_BUNDLE_COPYRIGHT "Copyright 2007 Pablo d'Angelo" )
28
  set( MACOSX_BUNDLE_SIGNATURE "HgiS" )

32
  set( MACOSX_BUNDLE_SIGNATURE "HgiS" )
29
  #  set( CMAKE_OSX_ARCHITECTURES ppc;i386 ) #Comment out if not universal binary

33
  #  set( CMAKE_OSX_ARCHITECTURES ppc;i386 ) #Comment out if not universal binary
30
34
31
  IF(MAC_SELF_CONTAINED_BUNDLE)

35
  IF(MAC_SELF_CONTAINED_BUNDLE)
32
    MESSAGE(SEND_ERROR "TODO: add support for building fully featured PTBatcherGUI bundle")

36
    MESSAGE(SEND_ERROR "TODO: add support for building fully featured PTBatcherGUI bundle")
33
  ENDIF(MAC_SELF_CONTAINED_BUNDLE)

37
  ENDIF(MAC_SELF_CONTAINED_BUNDLE)
34
     

38
     
35
  set( ICON_FILES ${MACOSX_BUNDLE_ICON_FILE} ${MACOSX_BUNDLE_TYPE_ICON_FILE} )

39
  set( ICON_FILES ${MACOSX_BUNDLE_ICON_FILE} ${MACOSX_BUNDLE_TYPE_ICON_FILE} )
36
  ADD_EXECUTABLE( ${PROGNAME_GUI} MACOSX_BUNDLE PTBatcherGUI.cpp PTBatcherGUI.h PTBatcherGUI_rc.rc Batch.cpp Batch.h RunStitchFrame.cpp RunStitchFrame.h ProjectArray.cpp ProjectArray.h ProjectListBox.cpp ProjectListBox.h BatchFrame.cpp BatchFrame.h DirTraverser.h
40
  ADD_EXECUTABLE( ${PROGNAME_GUI} MACOSX_BUNDLE ${PTBATCHERGUI_SOURCE} ${PTBATCHERGUI_HEADER} ${ICON_FILES})
37
                  ${ICON_FILES})
41
38
39
ELSE (WIN32)

42
ELSE (WIN32)
40
 add_executable(${PROGNAME_GUI} PTBatcherGUI.cpp PTBatcherGUI.h PTBatcherGUI_rc.rc Batch.cpp Batch.h RunStitchFrame.cpp RunStitchFrame.h ProjectArray.cpp ProjectArray.h ProjectListBox.cpp ProjectListBox.h BatchFrame.cpp BatchFrame.h DirTraverser.h)
43
 add_executable(${PROGNAME_GUI} PTBatcherGUI.cpp ${PTBATCHERGUI_SOURCE} ${PTBATCHERGUI_HEADER})
41
ENDIF (WIN32)

44
ENDIF (WIN32)
42
45
43
46
44
target_link_libraries(${PROGNAME_GUI} huginbasewx ${common_libs} ${image_libs} ${wxWidgets_LIBRARIES})

47
target_link_libraries(${PROGNAME_GUI} huginbasewx ${common_libs} ${image_libs} ${wxWidgets_LIBRARIES})
45
48
46
IF (APPLE)

49
IF (APPLE)
47
  IF (NOT MAC_SELF_CONTAINED_BUNDLE)

50
  IF (NOT MAC_SELF_CONTAINED_BUNDLE)
48
    install(TARGETS ${PROGNAME_GUI}

51
    install(TARGETS ${PROGNAME_GUI}
49
            DESTINATION ${INSTALL_OSX_BUNDLE_DIR})

52
            DESTINATION ${INSTALL_OSX_BUNDLE_DIR})
50
  ENDIF (NOT MAC_SELF_CONTAINED_BUNDLE)

53
  ENDIF (NOT MAC_SELF_CONTAINED_BUNDLE)
51
ELSE(APPLE)

54
ELSE(APPLE)
52
  install(TARGETS ${PROGNAME_GUI}

55
  install(TARGETS ${PROGNAME_GUI}
53
          DESTINATION ${BINDIR})

56
          DESTINATION ${BINDIR})
54
  IF (UNIX)

57
  IF (UNIX)
55
    INSTALL(FILES PTBatcherGUI.desktop DESTINATION ${DATADIR}/applications)

58
    INSTALL(FILES PTBatcherGUI.desktop DESTINATION ${DATADIR}/applications)
56
  ENDIF (UNIX)

59
  ENDIF (UNIX)
57
ENDIF(APPLE)

60
ENDIF(APPLE)
58
61

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

Sign up for the SourceForge newsletter:





No, thanks