| Server IP : 82.208.35.60 / Your IP : 216.73.217.39 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/science/dwave-preprocessing/files/ |
Upload File : |
--- testscpp/Makefile.orig 2022-05-07 23:28:35 UTC
+++ testscpp/Makefile
@@ -1,22 +1,22 @@
ROOT := ../
SRC := $(ROOT)/dwave/preprocessing/
-DIMOD := $(shell python -c 'import dimod; print(dimod.get_include())')
+#DIMOD := $(shell python -c 'import dimod; print(dimod.get_include())')
all: catch2 test_main test_main_parallel tests tests_parallel
-tests: test_main.out
+tests: test_main
./test_main
-tests_parallel: test_main_parallel.out
+tests_parallel: test_main_parallel
./test_main_parallel
test_main: test_main.cpp
- g++ -std=c++11 -Wall -c test_main.cpp
- g++ -std=c++11 -Wall test_main.o tests/*.cpp -o test_main -I $(SRC)/include/ -I $(DIMOD)
+ ${CXX} `pkg-config --cflags catch2` -std=c++11 -Wall -c test_main.cpp
+ ${CXX} `pkg-config --cflags catch2` -std=c++11 -Wall test_main.o tests/*.cpp -o test_main -I $(SRC)/include/ -I $(DIMOD)
test_main_parallel: test_main.cpp
- g++ -std=c++11 -fopenmp -Wall -c test_main.cpp -o test_main_parallel.o
- g++ -std=c++11 -fopenmp -Wall test_main_parallel.o tests/*.cpp -o test_main_parallel -I $(SRC)/include/ -I $(DIMOD)
+ ${CXX} `pkg-config --cflags catch2` -std=c++11 -fopenmp -Wall -c test_main.cpp -o test_main_parallel.o
+ ${CXX} `pkg-config --cflags catch2` -std=c++11 -fopenmp -Wall test_main_parallel.o tests/*.cpp -o test_main_parallel -I $(SRC)/include/ -I $(DIMOD)
catch2:
git submodule init