summaryrefslogtreecommitdiffstats
path: root/Source/FLTKDialog/CMakeLists.txt
blob: 65f0dadd2d5b2d71ae597adfac9b48a09bc02462 (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
SOURCE_FILES(SRCS
CMakeSetupGUIImplementation.cxx
FLTKDialog.cxx
FLTKPropertyItemRow.cxx
FLTKPropertyList.cxx
)

SOURCE_FILES(FLTK_GUI_Files_SRCS
CMakeSetupGUI.fl
)


LINK_LIBRARIES(${FLTK_LIBRARY})
IF(WIN32)
 IF(NOT UNIX)
   LINK_LIBRARIES(wsock32)
 ENDIF(NOT UNIX)
ENDIF(WIN32)


IF(UNIX)
  INCLUDE (${CMAKE_ROOT}/Modules/FindOpenGL.cmake)
  LINK_LIBRARIES(${OPENGL_LIBRARY})
ENDIF(UNIX)

INCLUDE_DIRECTORIES(${FLTK_INCLUDE_PATH})


ADD_EXECUTABLE(CMakeSetup SRCS)
FLTK_WRAP_UI(CMakeSetup FLTK_GUI_Files_SRCS)

INSTALL_TARGETS (/bin CMakeSetup)

IF(CMAKE_HAS_X)
LINK_LIBRARIES(-lXt -lm)
LINK_LIBRARIES(${CMAKE_X_LIBS})
ADD_DEFINITIONS(${CMAKE_X_CFLAGS})
ENDIF(CMAKE_HAS_X)