1 #----------------------------------------------------------------------------
2 # SET THE NAME OF YOUR LIBRARY
3 SET ( LIBRARY_NAME creaEnvironment )
4 #----------------------------------------------------------------------------
6 #----------------------------------------------------------------------------
7 # CREATES A USER OPTION IN CMAKE
8 OPTION ( BUILD_${LIBRARY_NAME} "Build ${LIBRARY_NAME} library ?" ON)
9 #----------------------------------------------------------------------------
11 #----------------------------------------------------------------------------
12 IF ( BUILD_${LIBRARY_NAME} )
13 #----------------------------------------------------------------------------
15 #----------------------------------------------------------------------------
17 #----------------------------------------------------------------------------
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
26 #"SomeEnvironment_Txx"
31 #"HandlerConceptsException"
34 #"ConceptInstantHandler"
39 #----------------------------------------------------------------------------
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
48 #"SomeEnvironment_Txx"
53 #"HandlerConceptsException"
56 #"ConceptInstantHandler"
61 #----------------------------------------------------------------------------
63 #----------------------------------------------------------------------------
64 # LIBRARY DEPENDENCIES (LIBRARIES TO LINK WITH)
65 SET (${LIBRARY_NAME}_LINK_LIBRARIES
68 #${WXWIDGETS_LIBRARIES}
74 #----------------------------------------------------------------------------
75 #----------------------------------------------------------------------------
76 # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL
77 CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
78 #----------------------------------------------------------------------------
80 #---------------------------------------------------------------------------
81 ENDIF ( BUILD_${LIBRARY_NAME} )