]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Update the custom targets
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Sep 2012 23:15:36 +0000 (23:15 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Sep 2012 23:15:36 +0000 (23:15 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26697 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_custom_targets.cmake

index d4f81e7e8f62a25d7056b180777541116774478e..c8cbb94147c231486c02907877d70b6f7c29b6a4 100644 (file)
 #
 
 ADD_CUSTOM_TARGET(library)
-ADD_DEPENDENCIES(library ${DEAL_II_BASE_NAME})
+
+IF(CMAKE_BUILD_TYPE MATCHES "Debug")
+  ADD_CUSTOM_TARGET(debug)
+
+  ADD_DEPENDENCIES(library ${DEAL_II_BASE_NAME}${DEAL_II_DEBUG_SUFFIX})
+  ADD_DEPENDENCIES(debug ${DEAL_II_BASE_NAME}${DEAL_II_DEBUG_SUFFIX})
+ENDIF()
+
+IF(CMAKE_BUILD_TYPE MATCHES "Release")
+  ADD_CUSTOM_TARGET(release)
+
+  ADD_DEPENDENCIES(library ${DEAL_II_BASE_NAME})
+  ADD_DEPENDENCIES(release ${DEAL_II_BASE_NAME})
+ENDIF()
 
 
 IF(DEAL_II_COMPONENT_DOCUMENTATION)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.