Problem with making CMakeLists.txt


#1

Hello.
I’m making programm on top of libcinder.

cmake_minimum_required( VERSION 2.8 FATAL_ERROR )
set( CMAKE_VERBOSE_MAKEFILE ON )

project( module )

get_filename_component( CINDER_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../" ABSOLUTE )
get_filename_component( APP_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../" ABSOLUTE )

include( "${CINDER_PATH}/proj/cmake/modules/cinderMakeApp.cmake"  )
include_directories( PUBLIC "${APP_PATH}/include" )


list( APPEND SOURCES
	    ${APP_PATH}/src/moduleApp.cpp
	    ${APP_PATH}/src/widgets/MainGui.cpp
	    ${APP_PATH}/src/widgets/Scene.cpp
	    ${APP_PATH}/src/widgets/Widget.cpp
	    ${APP_PATH}/src/widgets/Menu.cpp
	    ${APP_PATH}/src/widgets/ModuleWidget.cpp
	    ${APP_PATH}/src/widgets/RangeKnob.cpp
	    ${APP_PATH}/src/widgets/TwoSideRangeKnob.cpp
	    ${APP_PATH}/src/widgets/HorizontalSlider.cpp
	    ${APP_PATH}/src/widgets/Port.cpp
	    ${APP_PATH}/src/widgets/WireWidget.cpp
	    ${APP_PATH}/src/core.cpp
	    ${APP_PATH}/src/engine.cpp
	    ${APP_PATH}/src/gui.cpp
	    ${APP_PATH}/src/modules/out.cpp
    )


ci_make_app(
    SOURCES    ${SOURCES}
    CINDER_PATH ${CINDER_PATH}
    BLOCKS		NanoVG
)

this is cmakelists.txt for my programm
Programm compile fine.

Now i need to make dynamic libraries for my programm

cmake_minimum_required( VERSION 2.8 FATAL_ERROR )
set( CMAKE_VERBOSE_MAKEFILE ON )

get_filename_component( CINDER_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../../../" ABSOLUTE )

project(coreModules)	

set(SOURCE_LIB ../../src/video.cpp)	
include_directories(../../../../../include)	


set ( CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON )
add_library(coreModules SHARED ${SOURCE_LIB})


if( NOT TARGET cinder )
    include( "${CINDER_PATH}/proj/cmake/configure.cmake" )
    find_package( cinder REQUIRED PATHS
        "${CINDER_PATH}/${CINDER_LIB_DIRECTORY}"
        "$ENV{CINDER_PATH}/${CINDER_LIB_DIRECTORY}" )
endif()

target_link_libraries( coreModule PRIVATE cinder )`

But how i can add NanoVG blocks include for my library?