#==================================
#==================================
-# Find crea
+# Find crea (mandatory, to use macros)
SET(CREA_VERBOSE_CMAKE TRUE)
FIND_PACKAGE(crea REQUIRED)
IF (crea_FOUND)
#----------------------------------------------------------------------------
# CREATES A USER OPTION IN CMAKE
-OPTION ( BUILD_${LIBRARY_NAME} "Build ${LIBRARY_NAME} library ?" ON))
+OPTION ( BUILD_${LIBRARY_NAME} "Build ${LIBRARY_NAME} library ?" ON)
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# LIBRARY HEADERS (TO BE INSTALLED)
- # EITHER LIST ALL .h IN CURRENT DIR USING NEXT LINE:
- FILE(GLOB ${LIBRARY_NAME}_HEADERS "*.h")
+ # EITHER LIST ALL .h, *.txx IN CURRENT DIR USING NEXT LINE:
+ FILE(GLOB ${LIBRARY_NAME}_HEADERS "*.h" "*.txx")
# OR MANUALLY LIST YOUR HEADERS WITH NEXT COMMAND
# SET ( ${LIBRARY_NAME}_HEADERS
#
)
#----------------------------------------------------------------------------
-
#----------------------------------------------------------------------------
# MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL
CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
#----------------------------------------------------------------------------
-
#---------------------------------------------------------------------------
ENDIF ( BUILD_${LIBRARY_NAME} )