CMakeLists.txt 3.1 KB
Newer Older
1
2
########### next target ###############

3
4
5
6
7
8
9
10
11
12
include_directories(
        ${CMAKE_CURRENT_SOURCE_DIR}
        ${CMAKE_CURRENT_SOURCE_DIR}/gui
        ${CMAKE_CURRENT_SOURCE_DIR}/gui/views
        ${CMAKE_CURRENT_SOURCE_DIR}/logic
        ${CMAKE_CURRENT_BINARY_DIR}/gui
        ${CMAKE_CURRENT_BINARY_DIR}/gui/views
#        ${CMAKE_CURRENT_BINARY_DIR}/gui/export
#        ${CMAKE_CURRENT_BINARY_DIR}/gui/export/draw
#        ${CMAKE_CURRENT_BINARY_DIR}/logic
Benjamin Reed's avatar
Benjamin Reed committed
13
	${OPENGL_INCLUDE_DIR}
14
15
)

16
17
18
19
set(ksudoku_SRCS
	main.cpp
)

20
#kde4_add_app_icon(ksudoku_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/hi*-app-ksudoku.png")
21
22
23
24
kde4_add_executable(ksudoku ${ksudoku_SRCS})

target_link_libraries(ksudoku
	ksudoku_gui ksudoku_views ksudoku_logic
25
	kdegames
26
	 ${QT_QTOPENGL_LIBRARY} ${KDE4_KIO_LIBS} ${OPENGL_LIBRARIES} ${KDE4_KNEWSTUFF2_LIBRARY}
27
28
29
30
31
32
33
34
35
) #ksudoku_export ksudoku_draw

install(TARGETS ksudoku  DESTINATION ${BIN_INSTALL_DIR} )

########### next target ###############
ADD_SUBDIRECTORY( logic  )
ADD_SUBDIRECTORY( gui             )
#ADD_SUBDIRECTORY( gui/export      ) #TODO PORT
#ADD_SUBDIRECTORY( gui/export/draw ) #TODO PORT
36
ADD_SUBDIRECTORY( shapes )
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54


#set(ksudoku_client_SRCS
#    ksudoku_client.cpp
#)

#kde3_automoc( ${ksudoku_client_SRCS} )

#kde3_add_executable(ksudoku_client ${ksudoku_client_SRCS})

#target_link_libraries(ksudoku_client ${QT_AND_KDECORE_LIBRARIES} kdeui)



#install(TARGETS ksudoku_client  DESTINATION ${BIN_INSTALL_DIR} )

########### install files ###############

55
install( FILES gui/ksudoku.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
Pino Toscano's avatar
Pino Toscano committed
56
57
install( FILES gui/ksudokuui.rc  DESTINATION  ${DATA_INSTALL_DIR}/ksudoku )
install( FILES ksudokurc  DESTINATION ${CONFIG_INSTALL_DIR})
58

Pino Toscano's avatar
Pino Toscano committed
59
kde4_install_icons(${ICON_INSTALL_DIR})
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107


########### the old Makefile.am #########

# ## Makefile.am for ksudoku
#
# # this is the program that gets installed.  it's name is used for all
# # of the other Makefile.am variables
# bin_PROGRAMS = ksudoku ksudoku_client
#
# # set the include path for X, qt and KDE
# INCLUDES         = $(all_includes)
#
# # the library search path.
# ksudoku_LDFLAGS = $(KDE_RPATH) $(all_libraries)
#
# # the libraries to link against.
# ksudoku_LDADD   = $(LIB_KFILE) $(LIB_KDEPRINT)  -lGL -lGLU
#
# # which sources should be compiled for ksudoku
# ksudoku_SOURCES = main.cpp ksudoku.cpp ksudokuview.cpp ksudokuiface.skel \
# 		qsudokubutton.cpp knewdlg.cpp sudoku_solver.cpp glwindow.cpp ArcBall.cpp
#
# # these are the headers for your project
# noinst_HEADERS = ksudoku.h ksudokuview.h qsudokubutton.h knewdlg.h \
# 		sudoku_solver.h glwindow.h
#
# # client stuff
# ksudoku_client_LDFLAGS = $(KDE_RPATH) $(all_libraries)
# ksudoku_client_LDADD   = $(LIB_KDECORE)
# ksudoku_client_SOURCES = ksudoku_client.cpp
#
# # let automoc handle all of the meta source files (moc)
# METASOURCES = AUTO
#
# messages: rc.cpp
# 	$(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
# 	$(XGETTEXT) *.cpp -o $(podir)/ksudoku.pot
#
# KDE_ICON = AUTO
#
# # this is where the kdelnk file will go
# kdelnkdir   = $(kde_appsdir)/Games
# kdelnk_DATA = ksudoku.desktop
#
# # this is where the XML-GUI resource file goes
# rcdir = $(kde_datadir)/ksudoku
# rc_DATA = ksudokuui.rc