#---------------------------------------------------------------------------- # SET THE NAME OF YOUR LIBRARY SET ( LIBRARY_NAME creaMaracasVisu_CutModule_kernel ) #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # BUILD LIBRARY #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # LIBRARY HEADERS (TO BE INSTALLED) # EITHER LIST ALL .h IN CURRENT DIR USING NEXT LINE: FILE(GLOB ${LIBRARY_NAME}_HEADERS "*.h") # OR MANUALLY LIST YOUR HEADERS WITH NEXT COMMAND # SET ( ${LIBRARY_NAME}_HEADERS # # ) #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # LIBRARY SOURCES (TO BE COMPILED) # EITHER LIST ALL .cxx, *.cpp, *.cc IN CURRENT DIR USING NEXT LINE: FILE(GLOB ${LIBRARY_NAME}_SOURCES *.cxx *.cpp *.cc) # OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION) # SET ( ${LIBRARY_NAME}_SOURCES # # ) #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # LIBRARY DEPENDENCIES (LIBRARIES TO LINK WITH) SET ( ${LIBRARY_NAME}_LINK_LIBRARIES ${crea_LIBRARIES} # ${VTK_LIBRARIES} # ${ITK_LIBRARIES} # ${GDCM_LIBRARIES} # ${BOOST_LIBRARIES} ) #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL #CREA_ADD_LIBRARY( ${LIBRARY_NAME} ) #---------------------------------------------------------------------------- ADD_LIBRARY(${LIBRARY_NAME} STATIC ${${LIBRARY_NAME}_SOURCES} ${${LIBRARY_NAME}_HEADERS} ) # LINK TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES})