cmake_minimum_required(VERSION 2.8.3) project(std_lib) add_compile_options(-std=c++11) set(CMAKE_BUILD_TYPE Release) find_package(Boost REQUIRED COMPONENTS system thread chrono) include_directories( include ${boost_INCLUDE_DIRS} ) add_library(std_lib SHARED src/json/json_reader.cpp src/json/json_value.cpp src/json/json_writer.cpp src/json/json.cpp src/string/string.cpp src/system/uuid.cpp src/system/time.cpp src/database/database.cpp src/database/sqlite.cpp src/communication/tcp/tcp.cpp src/communication/udp/udp.cpp ) target_link_libraries(std_lib ${Boost_LIBRARIES} libsqlite3.so ) INSTALL(TARGETS std_lib RUNTIME DESTINATION bin LIBRARY DESTINATION lib ) INSTALL(DIRECTORY include/std_lib DESTINATION include )