CMakeLists.txt 585 B

123456789101112131415161718192021222324252627
  1. FILE(GLOB Header "*.h")
  2. SET(PythonSrc
  3. ${Header}
  4. PythonInit.cc
  5. PythonInterpreter.cc
  6. )
  7. ADD_LIBRARY(PythonInterpreter ${PythonSrc})
  8. SET_PROPERTY(TARGET PythonInterpreter PROPERTY FOLDER "Platform/Python")
  9. ADD_EXECUTABLE(PythonInitTest PythonInitTest.cc)
  10. ADD_EXECUTABLE(PythonInterpreterTest PythonInterpreterTest.cc)
  11. SET(Tests
  12. PythonInitTest
  13. PythonInterpreterTest
  14. )
  15. FOREACH(Test ${Tests})
  16. TARGET_LINK_LIBRARIES(${Excute}
  17. PythonInterpreter
  18. ${ThirdPartyLibs}
  19. )
  20. ADD_TEST(${Test} ${Test})
  21. SET_PROPERTY(TARGET ${Test} PROPERTY FOLDER "Tests/Platform/Python")
  22. ENDFOREACH()