blob: 745d2a834112335deefa25726c2d292e752d7102 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
INCLUDE (${CMAKE_ROOT}/Modules/FindFLTK.cmake)
IF(FLTK_LIBRARY)
IF(FLTK_INCLUDE_PATH)
SUBDIRS(FLTKDialog)
ENDIF(FLTK_INCLUDE_PATH)
ENDIF(FLTK_LIBRARY)
SOURCE_FILES(SRCS
cmake
cmMakeDepend
cmMakefile
cmMakefileGenerator
cmRegularExpression
cmSourceFile
cmSystemTools
cmDirectory
cmCommands
cmTarget
cmCustomCommand
cmCacheManager
cmCableClassSet
cmSourceGroup
)
IF (WIN32)
SOURCE_FILES(SRCS cmDSWWriter cmDSPWriter cmMSProjectGenerator)
ELSE (WIN32)
SOURCE_FILES(SRCS cmUnixMakefileGenerator)
ENDIF (WIN32)
# create a library used by the command line and the GUI
ADD_LIBRARY(CMakeLib SRCS)
# always link in the library
LINK_LIBRARIES(CMakeLib)
# the library is found here
LINK_DIRECTORIES(${CMake_BINARY_DIR}/Sources)
ADD_EXECUTABLE(cmake cmakemain)
ADD_TEST(burn cmake)
INSTALL_TARGETS(/bin cmake)
|