1
# This file is automatically generated by running
3
# cmake/scripts/generate-cmakefiles
6
cmake_minimum_required(VERSION 2.8)
8
set(PROJECT_NAME demo_csg_2D)
9
project(${PROJECT_NAME})
11
# Set verbose output while testing CMake
12
#set(CMAKE_VERBOSE_MAKEFILE 1)
15
cmake_policy(SET CMP0004 OLD)
17
# Get DOLFIN configuration data (dolfin-config.cmake must be in DOLFIN_CMAKE_CONFIG_PATH)
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)
26
# Compiler definitions
27
add_definitions(${DOLFIN_CXX_DEFINITIONS})
29
# Add special DOLFIN compiler flags
30
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DOLFIN_CXX_FLAGS}")
33
include_directories(${DOLFIN_INCLUDE_DIRS})
34
include_directories(SYSTEM ${DOLFIN_3RD_PARTY_INCLUDE_DIRS})
37
add_executable(${PROJECT_NAME} main.cpp)
40
target_link_libraries(${PROJECT_NAME} ${DOLFIN_LIBRARIES} ${DOLFIN_3RD_PARTY_LIBRARIES})