~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to demo/undocumented/csg/2D/cpp/CMakeLists.txt

  • Committer: corrado maurini
  • Date: 2012-12-18 12:16:08 UTC
  • mfrom: (6685.78.207 trunk)
  • Revision ID: corrado.maurini@upmc.fr-20121218121608-nk82ly9jgsld9u84
updating with trunk, fix uint in TAO solver and hacking the check for tao FindTAO.cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This file is automatically generated by running
 
2
#
 
3
#     cmake/scripts/generate-cmakefiles
 
4
#
 
5
# Require CMake 2.8
 
6
cmake_minimum_required(VERSION 2.8)
 
7
 
 
8
set(PROJECT_NAME demo_csg_2D)
 
9
project(${PROJECT_NAME})
 
10
 
 
11
# Set verbose output while testing CMake
 
12
#set(CMAKE_VERBOSE_MAKEFILE 1)
 
13
 
 
14
# Set CMake behavior
 
15
cmake_policy(SET CMP0004 OLD)
 
16
 
 
17
# Get DOLFIN configuration data (dolfin-config.cmake must be in DOLFIN_CMAKE_CONFIG_PATH)
 
18
find_package(dolfin)
 
19
 
 
20
# Default build type (can be overridden by user)
 
21
if (NOT CMAKE_BUILD_TYPE)
 
22
  set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
 
23
    "Choose the type of build, options are: Debug MinSizeRel Release RelWithDebInfo." FORCE)
 
24
endif()
 
25
 
 
26
# Compiler definitions
 
27
add_definitions(${DOLFIN_CXX_DEFINITIONS})
 
28
 
 
29
# Add special DOLFIN compiler flags
 
30
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DOLFIN_CXX_FLAGS}")
 
31
 
 
32
# Include directories
 
33
include_directories(${DOLFIN_INCLUDE_DIRS})
 
34
include_directories(SYSTEM ${DOLFIN_3RD_PARTY_INCLUDE_DIRS})
 
35
 
 
36
# Executable
 
37
add_executable(${PROJECT_NAME} main.cpp)
 
38
 
 
39
# Target libraries
 
40
target_link_libraries(${PROJECT_NAME} ${DOLFIN_LIBRARIES} ${DOLFIN_3RD_PARTY_LIBRARIES})