|
|
@@ -1,3 +1,12 @@
|
|
|
+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
|
|
|
@@ -13,7 +22,6 @@ cmCustomCommand
|
|
|
cmCacheManager
|
|
|
cmCableClassSet
|
|
|
cmSourceGroup
|
|
|
-cmakemain
|
|
|
)
|
|
|
|
|
|
IF (WIN32)
|
|
|
@@ -22,7 +30,14 @@ ELSE (WIN32)
|
|
|
SOURCE_FILES(SRCS cmUnixMakefileGenerator)
|
|
|
ENDIF (WIN32)
|
|
|
|
|
|
-ADD_EXECUTABLE(cmake SRCS)
|
|
|
+# 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}/Sources)
|
|
|
+
|
|
|
+ADD_EXECUTABLE(cmake cmakemain)
|
|
|
|
|
|
ADD_TEST(burn cmake)
|
|
|
|