This commit converts 'nncc_fountion' as a static library in order to
permit the use of this library without installation.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
file(GLOB_RECURSE TESTS "src/*.test.cpp")
list(REMOVE_ITEM SOURCES ${TESTS})
-add_nncc_library(nncc_foundation SHARED ${HEADERS} ${SOURCES})
+# NOTE STATIC is deliberately used here to permit the use of 'nncc_foundation' without installation
+add_nncc_library(nncc_foundation STATIC ${HEADERS} ${SOURCES})
+set_target_properties(nncc_foundation PROPERTIES POSITION_INDEPENDENT_CODE ON)
set_target_properties(nncc_foundation PROPERTIES LINKER_LANGUAGE CXX)
target_include_directories(nncc_foundation PUBLIC include)