CMakeLists.txt 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 (APPLE)
  24. target_link_libraries(ff7_battle_scene_dumper "-framework CoreFoundation -framework Cocoa -framework IOKit")
  25. endif()
  26. if(WIN32)
  27. set_target_properties(ff7_battle_scene_dumper PROPERTIES WIN32_EXECUTABLE ON)
  28. if (MSVC)
  29. set_target_properties(ff7_battle_scene_dumper PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
  30. endif()
  31. endif()
  32. set(LIBRARIES
  33. Utility
  34. )
  35. target_link_libraries(ff7_battle_scene_dumper ${LIBRARIES})
  36. install(TARGETS ff7_battle_scene_dumper
  37. DESTINATION tools/ff7
  38. )