54 lines
1.2 KiB
CMake
Executable File
54 lines
1.2 KiB
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
|
|
SET(LOG4CXX_PROPS_FILE log4cxx_opapp.props)
|
|
|
|
SET(mwt_SRCS
|
|
main.cpp
|
|
${LOG4CXX_PROPS_FILE}
|
|
)
|
|
|
|
IF(WIN32)
|
|
SET(JBN ${JENKINS_BUILD_NUMBER})
|
|
IF (NOT JENKINS_BUILD_NUMBER)
|
|
SET(JBN "0")
|
|
ENDIF()
|
|
SET(OPAPP_VERSION_INFO "${LTS_VERSION_MAJOR}, ${LTS_VERSION_MINOR}, ${JBN}, ${LTS_VERSION_PATCH}")
|
|
CONFIGURE_FILE(opapp.rc.cmake ${CMAKE_CURRENT_BINARY_DIR}/opapp.rc)
|
|
LIST(APPEND mwt_SRCS ${CMAKE_CURRENT_BINARY_DIR}/opapp.rc)
|
|
ENDIF()
|
|
NGL_ADD_APP_ICON(mwt_SRCS)
|
|
|
|
IF(BUILD_RPM)
|
|
NGL_ADD_EXECUTABLE(WS OperatorApplication WIN32 ${mwt_SRCS})
|
|
ELSE()
|
|
NGL_ADD_EXECUTABLE(WS OperatorApplication ${mwt_SRCS})
|
|
ENDIF()
|
|
|
|
NGL_TARGET_LINK_LIBRARIES(OperatorApplication
|
|
ArcGISQt5Hack # make sure it's loaded *before* libEsriCommonQt.so
|
|
Qt5::Widgets
|
|
Qt5::Network
|
|
nglapplication
|
|
LtsCommandLineParser
|
|
NGLLogger
|
|
LtsSession
|
|
LtsPluginLoader
|
|
LtsAppDescriptor
|
|
LtsAppManager
|
|
LtsSessionData
|
|
LtsUtilsSettings
|
|
ngltranslator
|
|
nglsettings
|
|
LtsProjectionWorkstation
|
|
LtsMultiMonitor # TODO: rm if -m is out
|
|
LtsUtilsGuiConnectDialog # to set timeout if -v is set
|
|
LtsUtilsGuiStyleManager
|
|
)
|
|
NGL_INSTALL_TARGET(OperatorApplication)
|
|
|
|
NGL_INSTALL(FILES WS ${LOG4CXX_PROPS_FILE} DESTINATION "bin")
|