diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ee6606..48e300e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,10 @@ project(color) set(CMAKE_CXX_STANDARD 11) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -add_library(color SHARED src/color.cpp src/conversion.cpp src/CIEDE2000.cpp) -target_include_directories(color PUBLIC include) +find_library(PythonLibs 3) + +add_library(color SHARED src/debug.cpp src/conversion.cpp src/CIEDE2000.cpp) +target_include_directories(color PUBLIC include PRIVATE ${PYTHON_INCLUDE_DIR}) add_executable(testCIEDE2000 test/testCIEDE2000.cpp) target_link_libraries(testCIEDE2000 color) diff --git a/include/color.h b/include/color.h index 55ebc55..4528a1a 100644 --- a/include/color.h +++ b/include/color.h @@ -9,10 +9,6 @@ #include -#ifndef M_PI -#define M_PI 3.14159265358979323846264338327950288 /* pi */ -#endif - namespace color { /** A color in CIELAB colorspace */ struct LAB { diff --git a/src/color.cpp b/src/debug.cpp similarity index 100% rename from src/color.cpp rename to src/debug.cpp