2 controllers/editgame.cpp
3 controllers/abstract.cpp
4 controllers/editposition.cpp
5 controllers/entitytoken.cpp
14 luaapi/genericwrapper.cpp
19 entities/gameentity.cpp
20 entities/userentity.cpp
21 entities/examinationentity.cpp
23 entities/engineentity.cpp
24 entities/icsentity.cpp
26 hlvariant/chess/variant.cpp
27 hlvariant/chess/san.cpp
28 hlvariant/chess/icsverbose.cpp
29 hlvariant/chess/move.cpp
30 hlvariant/chess/gamestate.cpp
31 hlvariant/chess/piece.cpp
32 hlvariant/chess/actions.cpp
34 hlvariant/dummy/variant.cpp
36 hlvariant/crazyhouse/variant.cpp
37 hlvariant/crazyhouse/piece.cpp
39 hlvariant/minichess5/variant.cpp
41 hlvariant/shogi/variant.cpp
42 hlvariant/shogi/piece.cpp
43 hlvariant/shogi/shogiactions.cpp
45 hlvariant/minishogi/variant.cpp
113 # remove spurious xpressive warnings
114 set_source_files_properties(icsconnection.cpp
115 PROPERTIES COMPILE_FLAGS -Wno-extra)
117 kde4_add_ui_files(tagua_SRC
126 ui/pref_theme_page.ui
133 ${Boost_INCLUDE_DIRS}
134 ${CMAKE_CURRENT_BINARY_DIR}
141 if(NOT DEFINED COMPILER_HAVE_X86_MMX)
142 check_cxx_source_compiles(" int main() { __asm__(\"pxor %mm0, %mm0\") ; }" COMPILER_HAVE_X86_MMX)
143 endif(NOT DEFINED COMPILER_HAVE_X86_MMX)
145 if(NOT DEFINED COMPILER_HAVE_X86_SSE2)
146 check_cxx_source_compiles(" int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" COMPILER_HAVE_X86_SSE2)
147 endif(NOT DEFINED COMPILER_HAVE_X86_SSE2)
149 if(COMPILER_HAVE_X86_MMX)
150 list(APPEND tagua_SRC imageeffects_mmx.cpp)
151 set_source_files_properties(imageeffects_mmx.cpp PROPERTIES COMPILE_FLAGS -mmmx)
152 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_MMX)
153 endif(COMPILER_HAVE_X86_MMX)
155 if(COMPILER_HAVE_X86_SSE2)
156 list(APPEND tagua_SRC imageeffects_sse.cpp)
157 set_source_files_properties(imageeffects_sse.cpp PROPERTIES COMPILE_FLAGS -msse2)
158 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_SSE2)
159 endif(COMPILER_HAVE_X86_SSE2)
162 set(TAGUA_TARGET taguaprivate)
164 kde4_add_library(taguaprivate SHARED ${tagua_SRC})
165 kde4_add_executable(tagua main.cpp)
167 set(TAGUA_TARGET tagua)
168 kde4_add_executable(tagua main.cpp ${tagua_SRC})
174 ${Boost_LIBRARY_DIRS}
175 ${CMAKE_BINARY_DIR}/lib
177 target_link_libraries(${TAGUA_TARGET}
186 target_link_libraries(tagua taguaprivate)
187 install(TARGETS taguaprivate DESTINATION ${LIB_INSTALL_DIR})
191 INSTALL(TARGETS tagua DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
192 install(FILES tagua.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
193 install(FILES taguaui.rc DESTINATION ${DATA_INSTALL_DIR}/tagua)