소스 검색

ENH: Add custom target names "CTK" to superbuild.

That target allows to build CTK project itself directly from the superbuild
directory. For example, on linux, it could be done using "make CTK"
Jean-Christophe Fillion-Robin 15 년 전
부모
커밋
f2bee63a5a
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      SuperBuild.cmake

+ 10 - 1
SuperBuild.cmake

@@ -313,7 +313,7 @@ ExternalProject_Add(${proj}
 #-----------------------------------------------------------------------------
 # CTK
 #
-set(proj CTK-build)
+SET(proj CTK-build)
 ExternalProject_Add(${proj}
   DOWNLOAD_COMMAND ""
   CMAKE_GENERATOR ${gen}
@@ -324,3 +324,12 @@ ExternalProject_Add(${proj}
   DEPENDS
     "CTK-Configure"
   )
+
+#-----------------------------------------------------------------------------
+# Custom target allowing to drive the build of CTK project itself
+#
+ADD_CUSTOM_TARGET(CTK
+  COMMAND ${CMAKE_COMMAND} --build ${CMAKE_CURRENT_BINARY_DIR}/CTK-build
+  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/CTK-build
+  )
+