File: CMakeLists.txt

package info (click to toggle)
volview 3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 25,204 kB
  • sloc: cpp: 132,585; ansic: 11,612; tcl: 236; sh: 64; makefile: 25; xml: 8
file content (43 lines) | stat: -rw-r--r-- 1,649 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
##=========================================================================
## 
##   Copyright (c) Kitware, Inc.
##   All rights reserved.
##   See Copyright.txt or http://www.kitware.com/VolViewCopyright.htm for details.
## 
##      This software is distributed WITHOUT ANY WARRANTY; without even
##      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
##      PURPOSE.  See the above copyright notice for more information.
## 
##=========================================================================
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
IF(COMMAND CMAKE_POLICY)
  CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)

PROJECT(KWVolViewSampleApp)

# Build a barebones sample application if testing is on..
INCLUDE("${KWVolView_CMAKE_DIR}/KWVolViewCreateExecutableMacros.cmake")
SET(BUILD_KWVolViewSampleApp            ON  CACHE INTERNAL "" FORCE)
SET(KWVolViewSampleApp_BUILD_AS_RELEASE OFF CACHE INTERNAL "" FORCE)
SET(KWVolVIewSampleApp_BUILD_TESTING    OFF CACHE INTERNAL "" FORCE)
KWVolView_CREATE_EXECUTABLE(
  APPLICATION_NAME    "VolView Application without toolbars or UI panels"
  SUPPORT_TRIAL_MODE  0
  SUPPORT_TESTING     0 
  SUPPORT_TESTING_GUI 0
  WINDOW_CLASS_NAME   "vtkVVWindowBase"
)

# Test if we can start the application and exit safely. 

GET_TARGET_PROPERTY(EXECUTABLE ${PROJECT_NAME}Launcher LOCATION)
IF(NOT EXECUTABLE)
  GET_TARGET_PROPERTY(EXECUTABLE ${PROJECT_NAME} LOCATION)
ENDIF(NOT EXECUTABLE)
STRING(REGEX REPLACE "\\$\\(OutDir\\)/" "" EXECUTABLE "${EXECUTABLE}")

ADD_TEST(KWVolView-StartAndExitApp ${EXECUTABLE}
  ${KWVolView_TESTING_DIR}/Tcl/KWVolViewStartAndExitApplication.tcl
  )