]> Creatis software - bbtk.git/commitdiff
BUG INSTALL *.txx
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 14 Apr 2009 17:14:15 +0000 (17:14 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 14 Apr 2009 17:14:15 +0000 (17:14 +0000)
kernel/src/CMakeLists.txt

index f9ee9f880679a566ac561d743b40df5de6a719b8..48e2b36dc3f9fb4539fb1da4276f306a7c4a50d2 100644 (file)
@@ -126,7 +126,7 @@ CREA_DEFINE(BBTK_EXPORT_SYMBOLS)
 # Sources files 
 FILE(GLOB SOURCES "." "*.cxx" "*.cpp") 
 # "ThirdParty/wx/treemultictrl/*.cpp")
-FILE(GLOB SOURCES_H "." "*.h" )
+FILE(GLOB SOURCES_H "." "*.h" "*.txx" )
 
 #-----------------------------------------------------------------------------
 IF(BBTK_USE_KWWIDGETS)
@@ -140,18 +140,20 @@ ENDIF(BBTK_USE_KWWIDGETS)
 
 #-----------------------------------------------------------------------------
 IF(BBTK_USE_QT)
-  #--------------------------------------------------------------------------- 
-  # MOC
-  SET(QT4_HEADERS_TO_WRAP
-    bbtkQtBlackBoxDialog.h
-    )
-  QT4_WRAP_CPP(MOC_SOURCES ${QT4_HEADERS_TO_WRAP})
-  #--------------------------------------------------------------------------- 
-  # UI
-  QT4_WRAP_UI(UI_SOURCES
-    bbtkQtBlackBoxDialog.ui
-    )
-  SET(SOURCES ${SOURCES} ${MOC_SOURCES} ${UI_SOURCES})
+  IF(QT_FOUND)
+    #--------------------------------------------------------------------------- 
+    # MOC
+    SET(QT4_HEADERS_TO_WRAP
+      bbtkQtBlackBoxDialog.h
+      )
+    QT4_WRAP_CPP(MOC_SOURCES ${QT4_HEADERS_TO_WRAP})
+    #--------------------------------------------------------------------------- 
+    # UI
+    QT4_WRAP_UI(UI_SOURCES
+      bbtkQtBlackBoxDialog.ui
+      )
+    SET(SOURCES ${SOURCES} ${MOC_SOURCES} ${UI_SOURCES})
+  ENDIF(QT_FOUND)
 ENDIF(BBTK_USE_QT)
 #-----------------------------------------------------------------------------
 
@@ -192,7 +194,7 @@ ENDIF(UNIX)
 
 
 #-----------------------------------------------------------------------------
-FILE(GLOB BBTK_HEADERS "*.h")
+FILE(GLOB BBTK_HEADERS "*.h" "*.txx")
 INSTALL(FILES ${BBTK_HEADERS} DESTINATION include/bbtk)
 INSTALL(TARGETS bbtk DESTINATION ${BBTK_LIB_PATH})
 #-----------------------------------------------------------------------------