CMakeLists.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # SuperTux - Scripting reference generator
  2. # Copyright (C) 2023 Vankata453
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. cmake_minimum_required(VERSION 3.1)
  17. project(ScriptingDocsGen)
  18. set(CMAKE_CXX_STANDARD 17)
  19. # Add SuperTux CMake module path.
  20. get_filename_component(PROJECT_SOURCE_DIR ../../ ABSOLUTE)
  21. list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/mk/cmake)
  22. # Allow for generating SuperTux documentation directly from here.
  23. include(SuperTux/BuildDocumentation)
  24. # Find packages
  25. # find_package(TINYXML2 REQUIRED)
  26. # Set include directories
  27. include_directories(${TINYXML2_INCLUDE_DIR})
  28. include_directories(${CMAKE_CURRENT_SOURCE_DIR})
  29. # Search for source files
  30. file(GLOB SRCFILES *.cpp)
  31. add_executable(ScriptingDocsGen ${SRCFILES})
  32. # Link libraries
  33. target_link_libraries(ScriptingDocsGen PUBLIC tinyxml2)