Python interpreter and libraries/headers detection.

- The user can now pass its own interpreter.
- Development libraries and headers can be requested.
- Travis-CI switched to new container-based workers.
This commit is contained in:
Roberto Di Remigio
2015-08-28 19:13:03 +02:00
parent 831e24a35b
commit 9e2f51ef25
17 changed files with 267 additions and 23 deletions

View File

@ -0,0 +1,2 @@
add_executable(example example.cpp)
target_link_libraries(example ${PYTHON_LIBRARIES})

View File

@ -0,0 +1,11 @@
#include <iostream>
#include <Python.h>
int main(int argc, char *argv[])
{
Py_SetProgramName(argv[0]); /* optional but recommended */
Py_Initialize();
PyRun_SimpleString("print('PASSED')\n");
Py_Finalize();
return 0;
}