CMakeLists.txt 496 B

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