CMakeLists.txt 1006 B

12345678910111213141516171819202122232425262728293031323334
  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. ${CMAKE_SOURCE_DIR}/Source/ThirdParty/libcurl/include)
  6. add_definitions(-DCPLUSPLUS_WITHOUT_QT -DCURL_STATICLIB)
  7. file (GLOB_RECURSE SOURCE_FILES *.cpp *.h)
  8. if (APPLE)
  9. file (GLOB_RECURSE OBJC_FILES *.mm )
  10. set (SOURCE_FILES ${SOURCE_FILES} ${OBJC_FILES})
  11. endif()
  12. add_library(ToolCore ${SOURCE_FILES})
  13. target_link_libraries(ToolCore Assimp Poco libcurl)
  14. if (LINUX)
  15. target_link_libraries(ToolCore NETCore NETScript)
  16. endif()
  17. GroupSources("Assets")
  18. GroupSources("AtomicNET")
  19. GroupSources("Build")
  20. GroupSources("Command")
  21. GroupSources("Import")
  22. GroupSources("JSBind")
  23. GroupSources("License")
  24. GroupSources("Net")
  25. GroupSources("Platform")
  26. GroupSources("Project")
  27. GroupSources("Subprocess")