|
@@ -12,6 +12,8 @@ set(TARGET_LIB_DIR ${CMAKE_INSTALL_LIBDIR})
|
|
|
set(TARGET_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
|
|
|
set(TARGET_BINDIR ${CMAKE_INSTALL_BINDIR})
|
|
|
|
|
|
+set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
|
|
+
|
|
|
add_library(${TARGET} microjson.cpp)
|
|
|
set_target_properties(${TARGET} PROPERTIES VERSION ${PROJECT_VERSION} PUBLIC_HEADER "microjson.h" OUTPUT_NAME ${TARGET})
|
|
|
target_include_directories(${TARGET} PUBLIC
|