diff --git a/CMakeLists.txt b/CMakeLists.txt index 6151565..5fe393c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,41 +1,42 @@ cmake_minimum_required (VERSION 3.0) project (kdegames) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_BUILD_WITH_INSTALL_RPATH ON) find_package(KDE1 REQUIRED) add_definitions(-DHAVE_CONFIG_H) include_directories(common) include(CMakePackageConfigHelpers) include(KDE1Macros) include(KDE1InstallDirs) if (CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-write-strings") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -std=c++98") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") endif() #add_subdirectory(bsd-port) add_subdirectory(kabalone) add_subdirectory(kasteroids) # need kdesupport-1.1.2 for that (QwSpriteField.h) add_subdirectory(kblackbox) #add_subdirectory(kenolaba) # Apparently this is the old name for kabalone add_subdirectory(kmahjongg) add_subdirectory(kmines) add_subdirectory(konquest) add_subdirectory(kpat) add_subdirectory(kpoker) -#add_subdirectory(kreversi) +add_subdirectory(kreversi) add_subdirectory(ksame) add_subdirectory(kshisen) add_subdirectory(ksirtet) add_subdirectory(ksnake) add_subdirectory(ksmiletris) +# add_subdirectory(ksokoban) # build system hell with povray and bin2c and crap add_subdirectory(po) diff --git a/kreversi/CMakeLists.txt b/kreversi/CMakeLists.txt new file mode 100644 index 0000000..0d3ed14 --- /dev/null +++ b/kreversi/CMakeLists.txt @@ -0,0 +1,52 @@ +include_directories ( + ${QT_INCLUDE_DIR} + ${KDE1_INCLUDE_DIR} +) + +set(Kreversi_SRCS + main.cpp misc.cpp app.cpp board.cpp Game.cpp Score.cpp SuperEngine.cpp + Engine.cpp Position.cpp Move.cpp Random.cpp about.cpp playsound.cpp +) + +set(Kreversi_MOC +app.moc board.moc about.moc + ) + +QT1_WRAP_MOC(MOC_FILES ${Kreversi_MOC}) + +add_executable(kreversi ${Kreversi_SRCS} ${MOC_FILES} ${QwSpriteField_SOURCES}) +target_link_libraries(kreversi + ${QT_LIBRARIES} + ${X11_LIBRARIES} + ${KDE1_KDECORE} + ${KDE1_KDEUI} + ${KDE1_MEDIATOOL} +) + +add_definitions(-DHAVE_MEDIATOOL) + +install(TARGETS kreversi RUNTIME DESTINATION ${KDE1_BINDIR}) +install(FILES kreversi.kdelnk DESTINATION ${KDE1_APPSDIR}/Games) +install_icon(kreversi.xpm) + + +file(GLOB PIXMAPS pics/*.xpm) +install(FILES ${PIXMAPS} + DESTINATION "${KDE1_DATADIR}/kreversi/pics") + +file(GLOB BACKGROUNDS pics/background/*.xpm) +install(FILES ${BACKGROUNDS} + DESTINATION "${KDE1_DATADIR}/kreversi/background") + +file(GLOB SOUNDS sounds/*.wav) +install(FILES ${SOUNDS} + DESTINATION "${KDE1_DATADIR}/kreversi/sounds") + +install(FILES + html/index.html + html/index-1.html + html/index-2.html + html/index-3.html + html/index-4.html + html/logotp3.gif + DESTINATION ${KDE1_HTMLDIR}/en/ksirtet )