CMakeLists.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. include_directories (${CMAKE_SOURCE_DIR}/Source/ThirdParty/rapidjson/include
  2. ${CMAKE_SOURCE_DIR}/Source/ThirdParty
  3. ${CMAKE_SOURCE_DIR}/Source/ThirdParty/Assimp/include
  4. ${CMAKE_SOURCE_DIR}/Source/ThirdParty/nativefiledialog)
  5. add_definitions(-DCPLUSPLUS_WITHOUT_QT)
  6. if (MSVC)
  7. include_directories (${CMAKE_SOURCE_DIR}/Source/ThirdParty/libcurl/include)
  8. add_definitions(-DCURL_STATICLIB)
  9. endif()
  10. file (GLOB_RECURSE SOURCE_FILES *.cpp *.h)
  11. if (APPLE)
  12. file (GLOB_RECURSE OBJC_FILES *.mm )
  13. set (SOURCE_FILES ${SOURCE_FILES} ${OBJC_FILES})
  14. endif()
  15. add_library(ToolCore ${SOURCE_FILES})
  16. target_link_libraries(ToolCore Assimp Poco)
  17. if (LINUX)
  18. target_link_libraries(ToolCore NETCore NETScript)
  19. endif()
  20. GroupSources("Assets")
  21. GroupSources("AtomicNET")
  22. GroupSources("Build")
  23. GroupSources("Command")
  24. GroupSources("Import")
  25. GroupSources("JSBind")
  26. GroupSources("License")
  27. GroupSources("Net")
  28. GroupSources("Platform")
  29. GroupSources("Project")
  30. GroupSources("Subprocess")