]> Creatis software - creaEnvironment.git/blob - lib/kernel_Environment/CMakeLists.txt
1900c49c4036d568cbc9db4687800b44d67e1f15
[creaEnvironment.git] / lib / kernel_Environment / CMakeLists.txt
1 #----------------------------------------------------------------------------
2 # SET THE NAME OF YOUR LIBRARY
3 SET ( LIBRARY_NAME   creaEnvironment  )
4 #----------------------------------------------------------------------------
5
6 #----------------------------------------------------------------------------
7 # CREATES A USER OPTION IN CMAKE
8 OPTION ( BUILD_${LIBRARY_NAME}  "Build ${LIBRARY_NAME} library ?" ON)
9 #----------------------------------------------------------------------------
10
11 #----------------------------------------------------------------------------
12 IF ( BUILD_${LIBRARY_NAME} )
13 #----------------------------------------------------------------------------
14
15   #----------------------------------------------------------------------------
16   # BUILD LIBRARY
17   #----------------------------------------------------------------------------
18
19   #----------------------------------------------------------------------------
20   # LIBRARY HEADERS (TO BE INSTALLED)
21   # EITHER LIST ALL .h IN CURRENT DIR USING NEXT LINE:
22   FILE(GLOB ${LIBRARY_NAME}_HEADERS "*.h")
23   # OR MANUALLY LIST YOUR HEADERS WITH NEXT COMMAND
24    #SET ( ${LIBRARY_NAME}_HEADERS
25         
26         #"SomeEnvironment_Txx"
27     #"SomeEnvironment"
28     #"SomeThing_Txx"
29     #"SomeThing"
30     #"Instant"
31     #"HandlerConceptsException"
32     #"InstantHandler_Txx"
33     #"InstantHandler"
34     #"ConceptInstantHandler"
35     #"InstantPlayer"
36     #"ReaderEnvironment"
37   
38  #     )
39   #----------------------------------------------------------------------------
40
41   #----------------------------------------------------------------------------
42   # LIBRARY SOURCES (TO BE COMPILED)
43   # EITHER LIST ALL .cxx, *.cpp, *.cc IN CURRENT DIR USING NEXT LINE:
44   FILE(GLOB ${LIBRARY_NAME}_SOURCES *.cxx *.cpp *.cc )
45   # OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION)
46   #  SET ( ${LIBRARY_NAME}_SOURCES 
47
48         #"SomeEnvironment_Txx"
49     #"SomeEnvironment"
50     #"SomeThing_Txx"
51     #"SomeThing"
52     #"Instant"
53     #"HandlerConceptsException"
54     #"InstantHandler_Txx"
55     #"InstantHandler"
56     #"ConceptInstantHandler"
57     #"InstantPlayer"
58     #"ReaderEnvironment"
59         
60      #)
61   #----------------------------------------------------------------------------
62
63   #----------------------------------------------------------------------------
64   # LIBRARY DEPENDENCIES (LIBRARIES TO LINK WITH)
65   SET (${LIBRARY_NAME}_LINK_LIBRARIES
66
67     ${crea_LIBRARIES}
68     #${WXWIDGETS_LIBRARIES}
69     #${VTK_LIBRARIES}
70     #    ${ITK_LIBRARIES}
71     #    ${GDCM_LIBRARIES}
72     #    ${BOOST_LIBRARIES}
73     )
74   #----------------------------------------------------------------------------    
75   #----------------------------------------------------------------------------
76   # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL
77   CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
78   #----------------------------------------------------------------------------
79
80    #---------------------------------------------------------------------------
81 ENDIF ( BUILD_${LIBRARY_NAME} )