|
@@ -7,12 +7,16 @@ set(TARGET_STATIC ${TARGET}Static)
|
|
|
set(TARGET_EXPORT ${TARGET}Targets)
|
|
|
set(TARGET_CONFIG ${TARGET}Config)
|
|
|
|
|
|
+include(GNUInstallDirs)
|
|
|
+
|
|
|
set(TARGET_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${TARGET})
|
|
|
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)
|
|
|
+set(CMAKE_CXX_STANDARD 11)
|
|
|
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
add_library(${TARGET} microjson.cpp)
|
|
|
set_target_properties(${TARGET} PROPERTIES VERSION ${PROJECT_VERSION} PUBLIC_HEADER "microjson.h" OUTPUT_NAME ${TARGET})
|