Browse Source

move cmake project one level up

python
Jørgen Lien Sellæg 7 years ago committed by Jørgen Sverre Lien Sellæg
parent
commit
f8127a76d2
  1. 2
      tests/python_bindings/CMake_tests/cmake_test.cc
  2. 4
      tests/python_bindings/cmake_project/CMakeLists.txt
  3. 1
      tests/python_bindings/cmake_project/main.cpp

2
tests/python_bindings/CMake_tests/cmake_test.cc

@ -9,7 +9,7 @@ int main() {
auto module = py::module::import("cmake_test");
try {
module.attr("run")((test_suite.test_file_path / suite_name / "cmake_project").string());
module.attr("run")((test_suite.test_file_path / "cmake_project").string());
test_suite.has_assertion = true;
} catch(const py::error_already_set &error){
std::cout << error.what();

4
tests/python_bindings/CMake_tests/cmake_project/CMakeLists.txt → tests/python_bindings/cmake_project/CMakeLists.txt

@ -1,7 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(cmake_project)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wall -Wextra")
add_executable(cmake_project main.cpp)

1
tests/python_bindings/cmake_project/main.cpp

@ -0,0 +1 @@
int main() { return 0; }
Loading…
Cancel
Save