2 controllers/editgame.cpp
3 controllers/abstract.cpp
4 controllers/editposition.cpp
13 luaapi/genericwrapper.cpp
18 entities/gameentity.cpp
19 entities/userentity.cpp
20 entities/examinationentity.cpp
22 entities/engineentity.cpp
23 entities/icsentity.cpp
26 variants/xchess/move.cpp
27 variants/xchess/piece.cpp
30 variants/crazyhouse.cpp
33 hlvariant/chess/variant.cpp
34 hlvariant/chess/san.cpp
35 hlvariant/chess/move.cpp
36 hlvariant/chess/gamestate.cpp
37 hlvariant/chess/piece.cpp
39 hlvariant/crazyhouse/variant.cpp
104 # remove spurious xpressive warnings
105 set_source_files_properties(icsconnection.cpp
106 PROPERTIES COMPILE_FLAGS -Wno-extra)
108 kde4_add_ui_files(tagua_SRC
117 ui/pref_theme_page.ui
124 ${Boost_INCLUDE_DIRS}
125 ${CMAKE_CURRENT_BINARY_DIR}
132 if(NOT DEFINED COMPILER_HAVE_X86_MMX)
133 check_cxx_source_compiles(" int main() { __asm__(\"pxor %mm0, %mm0\") ; }" COMPILER_HAVE_X86_MMX)
134 endif(NOT DEFINED COMPILER_HAVE_X86_MMX)
136 if(NOT DEFINED COMPILER_HAVE_X86_SSE2)
137 check_cxx_source_compiles(" int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" COMPILER_HAVE_X86_SSE2)
138 endif(NOT DEFINED COMPILER_HAVE_X86_SSE2)
140 if(COMPILER_HAVE_X86_MMX)
141 list(APPEND tagua_SRC imageeffects_mmx.cpp)
142 set_source_files_properties(imageeffects_mmx.cpp PROPERTIES COMPILE_FLAGS -mmmx)
143 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_MMX)
144 endif(COMPILER_HAVE_X86_MMX)
146 if(COMPILER_HAVE_X86_SSE2)
147 list(APPEND tagua_SRC imageeffects_sse.cpp)
148 set_source_files_properties(imageeffects_sse.cpp PROPERTIES COMPILE_FLAGS -msse2)
149 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_SSE2)
150 endif(COMPILER_HAVE_X86_SSE2)
153 set(TAGUA_TARGET taguaprivate)
155 kde4_add_library(taguaprivate SHARED ${tagua_SRC})
156 kde4_add_executable(tagua main.cpp)
158 set(TAGUA_TARGET tagua)
159 kde4_add_executable(tagua main.cpp ${tagua_SRC})
165 ${Boost_LIBRARY_DIRS}
166 ${CMAKE_BINARY_DIR}/lib
168 target_link_libraries(${TAGUA_TARGET}
177 target_link_libraries(tagua taguaprivate)
178 install(TARGETS taguaprivate DESTINATION ${LIB_INSTALL_DIR})
182 INSTALL(TARGETS tagua DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
183 install(FILES tagua.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
184 install(FILES taguaui.rc DESTINATION ${DATA_INSTALL_DIR}/tagua)