2012-05-29 13:31:11 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Object Viewer Qt
|
|
|
|
# Copyright (C) 2010 Dzmitry Kamiahin <dnk-88@tut.by>
|
|
|
|
#
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
2012-09-24 06:25:47 +00:00
|
|
|
# This tells the application(s) where to find the installed data.
|
|
|
|
IF(WIN32)
|
2012-09-24 12:02:33 +00:00
|
|
|
SET(OVQT_PLUGIN_SPECS_DIR "plugins")
|
2012-09-24 06:25:47 +00:00
|
|
|
SET(OVQT_PLUGIN_DIR "plugins")
|
2012-09-27 20:11:26 +00:00
|
|
|
SET(OVQT_DATA_DIR ".")
|
2012-09-24 06:25:47 +00:00
|
|
|
ELSEIF(APPLE)
|
|
|
|
# TODO: under Mac OS X, don't install but copy files in application package
|
2012-09-24 12:02:33 +00:00
|
|
|
SET(OVQT_PLUGIN_SPECS_DIR "plugins")
|
2012-09-24 06:25:47 +00:00
|
|
|
SET(OVQT_PLUGIN_DIR "plugins")
|
2012-09-27 20:11:26 +00:00
|
|
|
SET(OVQT_DATA_DIR ".")
|
2012-09-24 06:25:47 +00:00
|
|
|
ELSE(WIN32)
|
2014-05-18 19:47:31 +00:00
|
|
|
SET(OVQT_PLUGIN_SPECS_DIR ${NL_SHARE_PREFIX}/studio/plugins)
|
|
|
|
SET(OVQT_PLUGIN_DIR ${NL_LIB_PREFIX}/studio)
|
|
|
|
SET(OVQT_DATA_DIR ${NL_SHARE_PREFIX}/studio/data)
|
2012-09-24 12:02:33 +00:00
|
|
|
|
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/ovqt_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/ovqt_config.h)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(-DHAVE_OVQT_CONFIG_H)
|
2012-09-24 06:25:47 +00:00
|
|
|
ENDIF(WIN32)
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
IF(UNIX AND WITH_STATIC)
|
|
|
|
MESSAGE(FATAL_ERROR "OVQT does not work with static NeL builds on Unix atm.")
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(src)
|
|
|
|
|
|
|
|
INSTALL(DIRECTORY data/
|
2012-09-27 20:11:26 +00:00
|
|
|
DESTINATION ${OVQT_DATA_DIR}
|
2012-05-29 13:31:11 +00:00
|
|
|
COMPONENT data
|
|
|
|
PATTERN "CVS" EXCLUDE
|
|
|
|
PATTERN ".svn" EXCLUDE
|
|
|
|
PATTERN "Makefile*" EXCLUDE)
|
|
|
|
|