CMakeLists.txt 767 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. include_directories(
  2. ${CMAKE_CURRENT_SOURCE_DIR}/src
  3. )
  4. # define header and source files
  5. set(HEADER_FILES
  6. ./src/FFVIIString.h
  7. ./src/EnemyFile.h
  8. ./src/PlayerFile.h
  9. )
  10. set(SOURCE_FILES
  11. ./src/PlayerFile.cpp
  12. ./src/EnemyFile.cpp
  13. ./src/FFVIIString.cpp
  14. ./src/Main.cpp
  15. )
  16. add_definitions(
  17. -DQGEARS_ADD_MANAGERS
  18. )
  19. add_executable(ff7_battle_scene_dumper
  20. ${HEADER_FILES}
  21. ${SOURCE_FILES}
  22. )
  23. if(WIN32)
  24. set_target_properties(ff7_battle_scene_dumper PROPERTIES WIN32_EXECUTABLE ON)
  25. if (MSVC)
  26. set_target_properties(ff7_battle_scene_dumper PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
  27. endif()
  28. endif()
  29. set(LIBRARIES
  30. Utility
  31. )
  32. target_link_libraries(ff7_battle_scene_dumper ${LIBRARIES})
  33. install(TARGETS ff7_battle_scene_dumper
  34. DESTINATION tools/ff7
  35. )