~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/remote/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-08-12 11:16:41 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: package-import@ubuntu.com-20110812111641-sg7bj019yhh91mpl
Tags: upstream-2.0~beta2
ImportĀ upstreamĀ versionĀ 2.0~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#=============================================================================
 
2
#  MusE
 
3
#  Linux Music Editor
 
4
#  $Id:$
 
5
#
 
6
#  Copyright (C) 2002-2006 by Werner Schweer and others
 
7
#
 
8
#  This program is free software; you can redistribute it and/or modify
 
9
#  it under the terms of the GNU General Public License version 2.
 
10
#
 
11
#  This program is distributed in the hope that it will be useful,
 
12
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
#  GNU General Public License for more details.
 
15
#
 
16
#  You should have received a copy of the GNU General Public License
 
17
#  along with this program; if not, write to the Free Software
 
18
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
19
#=============================================================================
 
20
 
 
21
##
 
22
## List of source files to compile
 
23
##
 
24
file (GLOB remote_source_files
 
25
      pyapi.cpp
 
26
      )
 
27
 
 
28
##
 
29
## Define target
 
30
##
 
31
add_library(remote ${MODULES_BUILD}
 
32
      ${remote_source_files}
 
33
      ${PROJECT_BINARY_DIR}/all.h.pch
 
34
      )
 
35
 
 
36
##
 
37
## Append to the list of translations
 
38
##
 
39
set (FILES_TO_TRANSLATE
 
40
      ${FILES_TO_TRANSLATE}
 
41
      ${remote_source_files}
 
42
      CACHE INTERNAL ""
 
43
      )
 
44
 
 
45
##
 
46
## Compilation flags and target name
 
47
##
 
48
set_source_files_properties(
 
49
      pyapi.cpp
 
50
      PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all.h -include ${PYTHON_INCLUDES} -DENABLE_PYTHON"
 
51
      )
 
52
 
 
53
##
 
54
## Install location
 
55
##
 
56
if ( ${MODULES_BUILD} STREQUAL SHARED )
 
57
      install(TARGETS remote
 
58
            DESTINATION ${MusE_MODULES_DIR}
 
59
            )
 
60
endif ( ${MODULES_BUILD} STREQUAL SHARED )