You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
CMake
42 lines
1.3 KiB
CMake
13 years ago
|
#-----------------------------------------------------------------------------
|
||
|
#
|
||
|
# Object Viewer Qt
|
||
|
# Copyright (C) 2010 Dzmitry Kamiahin <dnk-88@tut.by>
|
||
|
#
|
||
|
#-----------------------------------------------------------------------------
|
||
|
|
||
12 years ago
|
# This tells the application(s) where to find the installed data.
|
||
|
IF(WIN32)
|
||
12 years ago
|
SET(OVQT_PLUGIN_SPECS_DIR "plugins")
|
||
12 years ago
|
SET(OVQT_PLUGIN_DIR "plugins")
|
||
12 years ago
|
SET(OVQT_DATA_DIR ".")
|
||
12 years ago
|
ELSEIF(APPLE)
|
||
|
# TODO: under Mac OS X, don't install but copy files in application package
|
||
12 years ago
|
SET(OVQT_PLUGIN_SPECS_DIR "plugins")
|
||
12 years ago
|
SET(OVQT_PLUGIN_DIR "plugins")
|
||
12 years ago
|
SET(OVQT_DATA_DIR ".")
|
||
12 years ago
|
ELSE(WIN32)
|
||
12 years ago
|
SET(OVQT_PLUGIN_SPECS_DIR ${NL_SHARE_PREFIX}/object_viewer_qt/plugins)
|
||
|
SET(OVQT_PLUGIN_DIR ${NL_LIB_PREFIX}/object_viewer_qt)
|
||
12 years ago
|
SET(OVQT_DATA_DIR ${NL_SHARE_PREFIX}/object_viewer_qt/data)
|
||
12 years ago
|
|
||
|
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)
|
||
12 years ago
|
ENDIF(WIN32)
|
||
13 years ago
|
|
||
|
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/
|
||
12 years ago
|
DESTINATION ${OVQT_DATA_DIR}
|
||
13 years ago
|
COMPONENT data
|
||
|
PATTERN "CVS" EXCLUDE
|
||
|
PATTERN ".svn" EXCLUDE
|
||
|
PATTERN "Makefile*" EXCLUDE)
|
||
|
|