From: trillos Date: Fri, 16 Oct 2009 14:36:27 +0000 (+0000) Subject: Tried changing to dynamic library, left as static X-Git-Tag: CREATOOLS.2-0-3~38 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=124e80f4fe9a8dc4c7581b79ad3165aefacdf6ed;p=creaRigidRegistration.git Tried changing to dynamic library, left as static --- diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 03bc324..bdd1edb 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -37,7 +37,7 @@ IF ( BUILD_${LIBRARY_NAME} ) # 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) + FILE(GLOB ${LIBRARY_NAME}_SOURCES *.cxx *.cpp *.cc *.h) # OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION) # SET ( ${LIBRARY_NAME}_SOURCES @@ -72,12 +72,12 @@ IF ( BUILD_${LIBRARY_NAME} ) # if you need to create a static library # comment out the following line : - CREA_ADD_LIBRARY( ${LIBRARY_NAME} ) + #CREA_ADD_LIBRARY( ${LIBRARY_NAME} ) # and uncomment the 2 lines hereafter: - # ADD_LIBRARY(${LIBRARY_NAME} STATIC ${${LIBRARY_NAME}_SOURCES}) - # TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES} ) + ADD_LIBRARY(${LIBRARY_NAME} STATIC ${${LIBRARY_NAME}_SOURCES}) + TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES} ) # #---------------------------------------------------------------------------- diff --git a/lib/Transformer.h b/lib/Transformer.h index 7af6494..1bf6f06 100644 --- a/lib/Transformer.h +++ b/lib/Transformer.h @@ -1,6 +1,6 @@ -#ifndef _$PROJECT_NAME$SOURCE01_H_ -#define _$PROJECT_NAME$SOURCE01_H_ +#ifndef Transformer_h +#define Transformer_h #include "vtkTransform.h" #include