CMakeLists.txt 415 B

123456789101112131415161718192021
  1. SET(PythonSrc
  2. PythonInit.cc
  3. PythonInterpreter.cc
  4. )
  5. ADD_LIBRARY(PythonInterpreter ${PythonSrc})
  6. ADD_EXECUTABLE(PythonInitTest PythonInitTest.cc)
  7. ADD_EXECUTABLE(PythonInterpreterTest PythonInterpreterTest.cc)
  8. SET(Excutes
  9. PythonInitTest
  10. PythonInterpreterTest
  11. )
  12. FOREACH(Excute ${Excutes})
  13. TARGET_LINK_LIBRARIES(${Excute}
  14. PythonInterpreter
  15. ${ThirdPartyLibs}
  16. )
  17. ADD_TEST(${Excute} ${Excute})
  18. ENDFOREACH()