CMakeLists.txt 1001 B

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