From: Matthias Maier Date: Sat, 20 Jul 2013 08:31:48 +0000 (+0000) Subject: CMake: Make sure to compile test_affinity.cc correctly X-Git-Tag: v8.0.0~48 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7022b0865f1a4d8cffea9b609fa88705dfdb3eb4;p=dealii.git CMake: Make sure to compile test_affinity.cc correctly git-svn-id: https://svn.dealii.org/trunk@30074 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/contrib/test_affinity/CMakeLists.txt b/deal.II/contrib/test_affinity/CMakeLists.txt index 0a737d4ae3..83075153c0 100644 --- a/deal.II/contrib/test_affinity/CMakeLists.txt +++ b/deal.II/contrib/test_affinity/CMakeLists.txt @@ -16,13 +16,15 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) -# FIND_PACKAGE(deal.II 8.0 REQUIRED) -# DEAL_II_SETUP_CACHED_VARIABLES() -# PROJECT(test_affinity) +INCLUDE_DIRECTORIES( + BEFORE + ${CMAKE_SOURCE_DIR}/include/ + ${CMAKE_BINARY_DIR}/include/ + ) + ADD_EXECUTABLE(test_affinity test_affinity.cc ) -#DEAL_II_SETUP_TARGET() IF(CMAKE_BUILD_TYPE MATCHES "Debug") SET(_build "DEBUG") @@ -42,14 +44,3 @@ TARGET_LINK_LIBRARIES(test_affinity ${DEAL_II_BASE_NAME}${DEAL_II_${_build}_SUFF IF(NOT CMAKE_CROSSCOMPILING) ADD_CUSTOM_TARGET(run_test_affinity COMMAND test_affinity) ENDIF() - -# IF("${DEAL_II_EXECUTABLE_RELDIR}" STREQUAL "") -# SET(DEAL_II_EXECUTABLE_RELDIR "bin") -# ENDIF() - -# INSTALL(TARGETS test_affinity -# RUNTIME -# DESTINATION ${DEAL_II_EXECUTABLE_RELDIR} -# COMPONENT mesh_converter -# ) -