CMakeLists.txt 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. cmake_minimum_required(VERSION 3.0)
  2. project(wallengine)
  3. set(CMAKE_CXX_STANDARD 17)
  4. set(CMAKE_CXX_FLAGS "-fpermissive")
  5. set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
  6. set(OpenGL_GL_PREFERENCE "LEGACY")
  7. find_package(X11 REQUIRED)
  8. find_package(OpenGL REQUIRED)
  9. find_package(GLUT REQUIRED)
  10. find_package(ZLIB REQUIRED)
  11. find_package(Irrlicht REQUIRED)
  12. find_package(SDL REQUIRED)
  13. find_package(SDL_mixer REQUIRED)
  14. find_package(LZ4 REQUIRED)
  15. include_directories(${X11_INCLUDE_DIR} ${IRRLICHT_INCLUDE_DIR} ${LZ4_INCLUDE_DIR} ${SDL_INCLUDE_DIRS} ${SDL_MIXER_INCLUDE_DIRS} .)
  16. add_executable(
  17. wallengine
  18. main.cpp
  19. wallpaperengine/shaders/compiler.h
  20. wallpaperengine/shaders/compiler.cpp
  21. wallpaperengine/project.cpp
  22. wallpaperengine/project.h
  23. wallpaperengine/scene.cpp
  24. wallpaperengine/scene.h
  25. wallpaperengine/object.cpp
  26. wallpaperengine/object.h
  27. wallpaperengine/camera.cpp
  28. wallpaperengine/camera.h
  29. wallpaperengine/core.cpp
  30. wallpaperengine/core.h
  31. wallpaperengine/image.cpp
  32. wallpaperengine/image.h
  33. wallpaperengine/object3d.cpp
  34. wallpaperengine/object3d.h
  35. wallpaperengine/effect.cpp
  36. wallpaperengine/effect.h
  37. wallpaperengine/fs/utils.cpp
  38. wallpaperengine/fs/utils.h
  39. wallpaperengine/irrlicht.cpp
  40. wallpaperengine/irrlicht.h
  41. wallpaperengine/video/renderer.cpp
  42. wallpaperengine/video/renderer.h
  43. wallpaperengine/video/node.cpp
  44. wallpaperengine/video/node.h
  45. wallpaperengine/video/material.cpp
  46. wallpaperengine/video/material.h
  47. wallpaperengine/texture.cpp
  48. wallpaperengine/texture.h
  49. wallpaperengine/irr/CImageLoaderTEX.h
  50. wallpaperengine/irr/CImageLoaderTEX.cpp
  51. wallpaperengine/irr/CPkgReader.h
  52. wallpaperengine/irr/CPkgReader.cpp
  53. wallpaperengine/irr/CFileList.h
  54. wallpaperengine/irr/CFileList.cpp
  55. wallpaperengine/sound.cpp
  56. wallpaperengine/sound.h
  57. wallpaperengine/core/project.cpp
  58. wallpaperengine/core/project.h
  59. wallpaperengine/core/scene.cpp
  60. wallpaperengine/core/scene.h
  61. wallpaperengine/core/object.cpp
  62. wallpaperengine/core/object.h
  63. wallpaperengine/core/scenes/camera.cpp
  64. wallpaperengine/core/scenes/camera.h
  65. wallpaperengine/core/scenes/projection.cpp
  66. wallpaperengine/core/scenes/projection.h
  67. wallpaperengine/core/objects/image.cpp
  68. wallpaperengine/core/objects/image.h
  69. wallpaperengine/core/objects/sound.cpp
  70. wallpaperengine/core/objects/sound.h
  71. wallpaperengine/core/objects/images/material.cpp
  72. wallpaperengine/core/objects/images/material.h
  73. wallpaperengine/core/objects/images/materials/passes.cpp
  74. wallpaperengine/core/objects/images/materials/passes.h
  75. )
  76. target_link_libraries(wallengine ${X11_LIBRARIES} ${X11_Xxf86vm_LIB} ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES} ${ZLIB_LIBRARIES} ${IRRLICHT_LIBRARY} ${LZ4_LIBRARY} ${SDL_LIBRARY} ${SDL_MIXER_LIBRARIES})