From 14e1b745726a7e66083c7f27d9a830f969924f1d Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Sat, 3 Dec 2016 10:38:07 -0600 Subject: [PATCH] modularize --- CMakeLists.txt | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb7b02000..67d93c61c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,6 +94,7 @@ set (SWIG_FILES ${CMAKE_SOURCE_DIR}/../generated/jni/yap_wrap.cpp ) else () set(YLIBS + $ $ $ $ @@ -106,21 +107,25 @@ else () endif () if (WIN32) - list (APPEND YLIBS $) + list (APPEND YLIBS $) endif() + add_component (core + ${ENGINE_SOURCES} + ${SWIG_FILES} + ${C_INTERFACE_SOURCES} + ${STATIC_SOURCES} + ${ALL_SOURCES} + ) + + add_library( # Sets the name of the library. libYap # Sets the library as a shared library. SHARED - - ${ENGINE_SOURCES} - ${SWIG_FILES} - ${C_INTERFACE_SOURCES} - ${STATIC_SOURCES} - ${ALL_SOURCES} + C/embedded.c ${YLIBS} ${WINDLLS} )