Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
8cc4ee64
Commit
8cc4ee64
authored
Aug 16, 2016
by
Guillaume Pasero
Browse files
COMP: mapla compilation
parent
4d01dfeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Modules/Visualization/Mapla/CMakeLists.txt
View file @
8cc4ee64
project
(
OTBMapla
)
configure_file
(
src/MaplaWin32.rc.in MaplaWin32.rc
)
set
(
OTBMapla_LIBRARIES OTBMapla
)
# folder where ui headers are generated
set
(
OTBMapla_INCLUDE_DIRS
${
OTBMapla_BINARY_DIR
}
/src
)
otb_module_impl
()
Modules/Visualization/Mapla/src/CMakeLists.txt
View file @
8cc4ee64
#############################################################################
set
(
OTBMapla_SRCS
main.cxx
MaplaApplication.cxx
MaplaMainWindow.cxx
mvdMaplaApplication.cxx
mvdMaplaMainWindow.cxx
)
#############################################################################
set
(
OTBMapla_HEADERS_MOC
mvdMaplaApplication.h
mvdMaplaMainWindow.h
../include/
mvdMaplaApplication.h
../include/
mvdMaplaMainWindow.h
# mvdPreferencesDialog.h
)
...
...
@@ -23,19 +22,50 @@ set( OTBMapla_RESOURCES
mvdMaplaMainWindow.qrc
)
if
(
WIN32
)
# Windows Resource file need to have the full path to icon
# if the .ico is not in the current dir
set
(
Mapla_App_WIN32_ICON
${
OTB_SOURCE_DIR
}
/Utilities/Data/Icons/monteverdi.ico
)
configure_file
(
mvdMaplaWin32.rc.in
mvdMaplaWin32.rc
@ONLY
)
if
(
MINGW
)
set
(
CMAKE_RC_COMPILE_OBJECT
"<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>"
)
endif
()
# The RC file to be added to source list
set
(
Mapla_App_WIN32_RC_FILE
${
CMAKE_CURRENT_BINARY_DIR
}
/mvdMaplaWin32.rc
)
endif
()
#############################################################################
qt4_wrap_cpp
(
OTBMapla_SRC_MOC
${
OTBMapla_HEADERS_MOC
}
)
qt4_wrap_ui
(
OTBMapla_FORMS_HEADERS
${
OTBMapla_FORMS
}
)
qt4_add_resources
(
OTBMapla_RESOURCES_RCC
${
OTBMapla_RESOURCES
}
)
#############################################################################
add_executable
(
mapla
${
OTBMapla_SRCS
}
)
#############################################################################
target_link_libraries
(
mapla
##########################[Mapla library]####################################
add_library
(
OTBMapla
STATIC
${
OTBMapla_SRCS
}
${
OTBMapla_FORMS_HEADERS
}
${
OTBMapla_SRC_MOC
}
)
target_link_libraries
(
OTBMapla
${
OTBMonteverdiCore_LIBRARIES
}
${
OTBMonteverdiGUI_LIBRARIES
}
${
OTBQt4_LIBRARIES
}
)
otb_module_target
(
OTBMapla
)
#############################################################################
############################[Mapla executable]###############################
add_executable
(
mapla
main.cxx
${
Mapla_App_WIN32_RC_FILE
}
${
OTBMapla_RESOURCES_RCC
}
)
target_link_libraries
(
mapla
OTBMapla
)
otb_module_target
(
mapla
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment