diff --git a/Code/GraphMol/MolDraw2D/CMakeLists.txt b/Code/GraphMol/MolDraw2D/CMakeLists.txt
index 40a158a..d9711f3 100644
--- a/Code/GraphMol/MolDraw2D/CMakeLists.txt
+++ b/Code/GraphMol/MolDraw2D/CMakeLists.txt
@@ -8,6 +8,8 @@ rdkit_headers(MolDraw2D.h
MolDraw2DSVG.h
MolDraw2Dwx.h
MolDraw2DUtils.h
+ MolDraw2DDetails.h
+ DEST GraphMol/MolDraw2D
)
if(RDK_BUILD_QT_SUPPORT)
@@ -22,7 +24,7 @@ if(RDK_BUILD_QT_SUPPORT)
set(QTDRAW2D_SRC MolDraw2DQt.cpp)
set(EXTRA_LOCAL_LIBS ${EXTRA_LOCAL_LIBS} ${Qt5Widgets_LIBRARIES} ${Qt5OpenGL_LIBRARIES} )
- rdkit_headers(MolDraw2DQt.h)
+ rdkit_headers(MolDraw2DQt.h DEST GraphMol/MolDraw2D)
endif(RDK_BUILD_QT_SUPPORT)
if(RDK_BUILD_CAIRO_SUPPORT)
@@ -31,7 +33,7 @@ if(RDK_BUILD_CAIRO_SUPPORT)
set(EXTRA_LOCAL_LIBS ${EXTRA_LOCAL_LIBS} ${CAIRO_LIBRARIES} )
ADD_DEFINITIONS("-DRDK_CAIRO_BUILD")
set(CAIRODRAW2D_SRC MolDraw2DCairo.cpp)
- rdkit_headers(MolDraw2DCairo.h)
+ rdkit_headers(MolDraw2DCairo.h DEST GraphMol/MolDraw2D)
endif(RDK_BUILD_CAIRO_SUPPORT)
rdkit_library(MolDraw2D MolDraw2D.cpp MolDraw2DSVG.cpp