2001-06-19 23:49:40 +04:00
|
|
|
SOURCE_FILES(SRCS
|
2001-06-20 21:56:38 +04:00
|
|
|
CMakeSetupGUIImplementation.cxx
|
|
|
|
FLTKDialog.cxx
|
|
|
|
FLTKPropertyItemRow.cxx
|
|
|
|
FLTKPropertyList.cxx
|
2001-06-19 23:49:40 +04:00
|
|
|
)
|
|
|
|
|
2001-12-11 10:14:37 +03:00
|
|
|
SOURCE_FILES(FLTK_GUI_Files_SRCS
|
|
|
|
CMakeSetupGUI.fl
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2001-06-19 23:49:40 +04:00
|
|
|
LINK_LIBRARIES(${FLTK_LIBRARY})
|
|
|
|
IF(WIN32)
|
|
|
|
IF(NOT UNIX)
|
|
|
|
LINK_LIBRARIES(wsock32)
|
|
|
|
ENDIF(NOT UNIX)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
2001-06-20 00:10:38 +04:00
|
|
|
|
|
|
|
IF(UNIX)
|
|
|
|
INCLUDE (${CMAKE_ROOT}/Modules/FindOpenGL.cmake)
|
|
|
|
LINK_LIBRARIES(${OPENGL_LIBRARY})
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
2001-06-19 23:49:40 +04:00
|
|
|
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_PATH})
|
|
|
|
|
2001-12-11 10:14:37 +03:00
|
|
|
|
2001-06-21 01:03:54 +04:00
|
|
|
ADD_EXECUTABLE(CMakeSetup SRCS)
|
2001-12-11 10:14:37 +03:00
|
|
|
FLTK_WRAP_UI(CMakeSetup FLTK_GUI_Files_SRCS)
|
|
|
|
|
2001-06-21 20:19:36 +04:00
|
|
|
INSTALL_TARGETS (/bin CMakeSetup)
|
2001-06-28 22:53:08 +04:00
|
|
|
|
|
|
|
IF(CMAKE_HAS_X)
|
|
|
|
LINK_LIBRARIES(-lXt -lm)
|
|
|
|
LINK_LIBRARIES(${CMAKE_X_LIBS})
|
|
|
|
ADD_DEFINITIONS(${CMAKE_X_CFLAGS})
|
2001-12-11 10:14:37 +03:00
|
|
|
ENDIF(CMAKE_HAS_X)
|