diff --git a/devicedefender/CMakeLists.txt b/devicedefender/CMakeLists.txt index 6b1b6fa2e..ff5096e80 100644 --- a/devicedefender/CMakeLists.txt +++ b/devicedefender/CMakeLists.txt @@ -46,27 +46,27 @@ if (WIN32) endif () endif() -add_library(${PROJECT_NAME} ${AWS_IOTDEVICEDEFENDER_CPP_SRC}) +add_library(IotDeviceDefender-cpp ${AWS_IOTDEVICEDEFENDER_CPP_SRC}) -set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) +set_target_properties(IotDeviceDefender-cpp PROPERTIES LINKER_LANGUAGE CXX) set(CMAKE_C_FLAGS_DEBUGOPT "") #set warnings if (MSVC) - target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX) + target_compile_options(IotDeviceDefender-cpp PRIVATE /W4 /WX) else () - target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic -Werror) + target_compile_options(IotDeviceDefender-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror) endif () -target_compile_definitions(${PROJECT_NAME} PRIVATE $<$:DEBUG_BUILD>) +target_compile_definitions(IotDeviceDefender-cpp PRIVATE $<$:DEBUG_BUILD>) if (BUILD_SHARED_LIBS) - target_compile_definitions(${PROJECT_NAME} PUBLIC "-DAWS_IOTDEVICEDEFENDER_USE_IMPORT_EXPORT") - target_compile_definitions(${PROJECT_NAME} PRIVATE "-DAWS_IOTDEVICEDEFENDER_EXPORTS") + target_compile_definitions(IotDeviceDefender-cpp PUBLIC "-DAWS_IOTDEVICEDEFENDER_USE_IMPORT_EXPORT") + target_compile_definitions(IotDeviceDefender-cpp PRIVATE "-DAWS_IOTDEVICEDEFENDER_EXPORTS") - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotDeviceDefender-cpp + EXPORT IotDeviceDefender-cpp-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development @@ -78,20 +78,20 @@ if (BUILD_SHARED_LIBS) DESTINATION ${RUNTIME_DIRECTORY} COMPONENT Runtime) - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotDeviceDefender-cpp + EXPORT IotDeviceDefender-cpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} NAMELINK_ONLY COMPONENT Development) else() - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotDeviceDefender-cpp + EXPORT IotDeviceDefender-cpp-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development) endif() -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(IotDeviceDefender-cpp PUBLIC $ $) @@ -102,9 +102,9 @@ if (BUILD_DEPS) endif() endif() -aws_add_sanitizers(${PROJECT_NAME}) +aws_add_sanitizers(IotDeviceDefender-cpp) -target_link_libraries(${PROJECT_NAME} PUBLIC IotDeviceCommon-cpp) +target_link_libraries(IotDeviceDefender-cpp PUBLIC IotDeviceCommon-cpp) install(FILES ${AWS_IOTDEVICEDEFENDER_HEADERS} DESTINATION "include/aws/iotdevicedefender/" COMPONENT Development) @@ -122,8 +122,8 @@ if (DEFINED SIMPLE_VERSION) ) endif() -install(EXPORT "${PROJECT_NAME}-targets" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/${TARGET_DIR}" +install(EXPORT "IotDeviceDefender-cpp-targets" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/IotDeviceDefender-cpp/cmake/${TARGET_DIR}" NAMESPACE AWS:: COMPONENT Development) @@ -132,7 +132,7 @@ configure_file("cmake/iotdevicedefender-cpp-config.cmake" @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/iotdevicedefender-cpp-config.cmake" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/IotDeviceDefender-cpp/cmake/" COMPONENT Development) if (BUILD_TESTING) diff --git a/iotdevicecommon/CMakeLists.txt b/iotdevicecommon/CMakeLists.txt index c1b1e5459..43267b556 100644 --- a/iotdevicecommon/CMakeLists.txt +++ b/iotdevicecommon/CMakeLists.txt @@ -48,27 +48,27 @@ endif() aws_use_package(aws-c-iot) -add_library(${PROJECT_NAME} ${AWS_IOTDEVICECOMMON_CPP_SRC}) +add_library(IotDeviceCommon-cpp ${AWS_IOTDEVICECOMMON_CPP_SRC}) -set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) +set_target_properties(IotDeviceCommon-cpp PROPERTIES LINKER_LANGUAGE CXX) set(CMAKE_C_FLAGS_DEBUGOPT "") #set warnings if (MSVC) - target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX) + target_compile_options(IotDeviceCommon-cpp PRIVATE /W4 /WX) else () - target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic -Werror) + target_compile_options(IotDeviceCommon-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror) endif () -target_compile_definitions(${PROJECT_NAME} PRIVATE $<$:DEBUG_BUILD>) +target_compile_definitions(IotDeviceCommon-cpp PRIVATE $<$:DEBUG_BUILD>) if (BUILD_SHARED_LIBS) - target_compile_definitions(${PROJECT_NAME} PUBLIC "-DAWS_IOTDEVICECOMMON_USE_IMPORT_EXPORT") - target_compile_definitions(${PROJECT_NAME} PRIVATE "-DAWS_IOTDEVICECOMMON_EXPORTS") + target_compile_definitions(IotDeviceCommon-cpp PUBLIC "-DAWS_IOTDEVICECOMMON_USE_IMPORT_EXPORT") + target_compile_definitions(IotDeviceCommon-cpp PRIVATE "-DAWS_IOTDEVICECOMMON_EXPORTS") - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotDeviceCommon-cpp + EXPORT IotDeviceCommon-cpp-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development @@ -80,20 +80,20 @@ if (BUILD_SHARED_LIBS) DESTINATION ${RUNTIME_DIRECTORY} COMPONENT Runtime) - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotDeviceCommon-cpp + EXPORT IotDeviceCommon-cpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} NAMELINK_ONLY COMPONENT Development) else() - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotDeviceCommon-cpp + EXPORT IotDeviceCommon-cpp-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development) endif() -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(IotDeviceCommon-cpp PUBLIC $ $) @@ -104,8 +104,9 @@ if (BUILD_DEPS) aws_use_package(aws-c-iot) endif() -aws_add_sanitizers(${PROJECT_NAME}) -target_link_libraries(${PROJECT_NAME} PUBLIC ${DEP_AWS_LIBS}) +aws_add_sanitizers(IotDeviceCommon-cpp) + +target_link_libraries(IotDeviceCommon-cpp PUBLIC ${DEP_AWS_LIBS}) install(FILES ${AWS_IOTDEVICECOMMON_HEADERS} DESTINATION "include/aws/iotdevicecommon/" COMPONENT Development) @@ -123,8 +124,8 @@ if (DEFINED SIMPLE_VERSION) ) endif() -install(EXPORT "${PROJECT_NAME}-targets" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/${TARGET_DIR}" +install(EXPORT "IotDeviceCommon-cpp-targets" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/IotDeviceCommon-cpp/cmake/${TARGET_DIR}" NAMESPACE AWS:: COMPONENT Development) @@ -133,5 +134,5 @@ configure_file("cmake/iotdevicecommon-cpp-config.cmake" @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/iotdevicecommon-cpp-config.cmake" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/IotDeviceCommon-cpp/cmake/" COMPONENT Development) diff --git a/jobs/CMakeLists.txt b/jobs/CMakeLists.txt index 5640acce2..627ec3601 100644 --- a/jobs/CMakeLists.txt +++ b/jobs/CMakeLists.txt @@ -48,27 +48,27 @@ if (WIN32) endif () endif() -add_library(${PROJECT_NAME} ${AWS_IOTJOBS_CPP_SRC}) +add_library(IotJobs-cpp ${AWS_IOTJOBS_CPP_SRC}) -set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) +set_target_properties(IotJobs-cpp PROPERTIES LINKER_LANGUAGE CXX) set(CMAKE_C_FLAGS_DEBUGOPT "") #set warnings if (MSVC) - target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX) + target_compile_options(IotJobs-cpp PRIVATE /W4 /WX) else () - target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic -Werror) + target_compile_options(IotJobs-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror) endif () -target_compile_definitions(${PROJECT_NAME} PRIVATE $<$:DEBUG_BUILD>) +target_compile_definitions(IotJobs-cpp PRIVATE $<$:DEBUG_BUILD>) if (BUILD_SHARED_LIBS) - target_compile_definitions(${PROJECT_NAME} PUBLIC "-DAWS_IOTJOBS_USE_IMPORT_EXPORT") - target_compile_definitions(${PROJECT_NAME} PRIVATE "-DAWS_IOTJOBS_EXPORTS") + target_compile_definitions(IotJobs-cpp PUBLIC "-DAWS_IOTJOBS_USE_IMPORT_EXPORT") + target_compile_definitions(IotJobs-cpp PRIVATE "-DAWS_IOTJOBS_EXPORTS") - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotJobs-cpp + EXPORT IotJobs-cpp-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development @@ -80,20 +80,20 @@ if (BUILD_SHARED_LIBS) DESTINATION ${RUNTIME_DIRECTORY} COMPONENT Runtime) - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotJobs-cpp + EXPORT IotJobs-cpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} NAMELINK_ONLY COMPONENT Development) else() - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotJobs-cpp + EXPORT IotJobs-cpp-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development) endif() -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(IotJobs-cpp PUBLIC $ $) @@ -103,9 +103,9 @@ if (BUILD_DEPS) endif() endif() -aws_add_sanitizers(${PROJECT_NAME}) +aws_add_sanitizers(IotJobs-cpp) -target_link_libraries(${PROJECT_NAME} PUBLIC ${DEP_AWS_LIBS}) +target_link_libraries(IotJobs-cpp PUBLIC ${DEP_AWS_LIBS}) install(FILES ${AWS_IOTJOBS_HEADERS} DESTINATION "include/aws/iotjobs/" COMPONENT Development) @@ -123,8 +123,8 @@ if (DEFINED SIMPLE_VERSION) ) endif() -install(EXPORT "${PROJECT_NAME}-targets" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/${TARGET_DIR}" +install(EXPORT "IotJobs-cpp-targets" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/IotJobs-cpp/cmake/${TARGET_DIR}" NAMESPACE AWS:: COMPONENT Development) @@ -133,5 +133,5 @@ configure_file("cmake/iotjobs-cpp-config.cmake" @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/iotjobs-cpp-config.cmake" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/IotJobs-cpp/cmake/" COMPONENT Development) diff --git a/secure_tunneling/CMakeLists.txt b/secure_tunneling/CMakeLists.txt index 29818d0bf..b8ac29df4 100644 --- a/secure_tunneling/CMakeLists.txt +++ b/secure_tunneling/CMakeLists.txt @@ -46,27 +46,27 @@ if (WIN32) endif () endif() -add_library(${PROJECT_NAME} ${AWS_IOTSECURETUNNELING_CPP_SRC}) +add_library(IotSecureTunneling-cpp ${AWS_IOTSECURETUNNELING_CPP_SRC}) -set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) +set_target_properties(IotSecureTunneling-cpp PROPERTIES LINKER_LANGUAGE CXX) set(CMAKE_C_FLAGS_DEBUGOPT "") #set warnings if (MSVC) - target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX) + target_compile_options(IotSecureTunneling-cpp PRIVATE /W4 /WX) else () - target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic -Werror) + target_compile_options(IotSecureTunneling-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror) endif () -target_compile_definitions(${PROJECT_NAME} PRIVATE $<$:DEBUG_BUILD>) +target_compile_definitions(IotSecureTunneling-cpp PRIVATE $<$:DEBUG_BUILD>) if (BUILD_SHARED_LIBS) - target_compile_definitions(${PROJECT_NAME} PUBLIC "-DAWS_IOTSECURETUNNELING_USE_IMPORT_EXPORT") - target_compile_definitions(${PROJECT_NAME} PRIVATE "-DAWS_IOTSECURETUNNELING_EXPORTS") + target_compile_definitions(IotSecureTunneling-cpp PUBLIC "-DAWS_IOTSECURETUNNELING_USE_IMPORT_EXPORT") + target_compile_definitions(IotSecureTunneling-cpp PRIVATE "-DAWS_IOTSECURETUNNELING_EXPORTS") - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotSecureTunneling-cpp + EXPORT IotSecureTunneling-cpp-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development @@ -78,20 +78,20 @@ if (BUILD_SHARED_LIBS) DESTINATION ${RUNTIME_DIRECTORY} COMPONENT Runtime) - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotSecureTunneling-cpp + EXPORT IotSecureTunneling-cpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} NAMELINK_ONLY COMPONENT Development) else() - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotSecureTunneling-cpp + EXPORT IotSecureTunneling-cpp-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development) endif() -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(IotSecureTunneling-cpp PUBLIC $ $) @@ -102,9 +102,9 @@ if (BUILD_DEPS) endif() endif() -aws_add_sanitizers(${PROJECT_NAME}) +aws_add_sanitizers(IotSecureTunneling-cpp) -target_link_libraries(${PROJECT_NAME} PUBLIC IotDeviceCommon-cpp) +target_link_libraries(IotSecureTunneling-cpp PUBLIC IotDeviceCommon-cpp) install(FILES ${AWS_IOTSECURETUNNELING_HEADERS} DESTINATION "include/aws/iotsecuretunneling/" COMPONENT Development) @@ -122,8 +122,8 @@ if (DEFINED SIMPLE_VERSION) ) endif() -install(EXPORT "${PROJECT_NAME}-targets" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/${TARGET_DIR}" +install(EXPORT "IotSecureTunneling-cpp-targets" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/IotSecureTunneling-cpp/cmake/${TARGET_DIR}" NAMESPACE AWS:: COMPONENT Development) @@ -132,5 +132,5 @@ configure_file("cmake/iotsecuretunneling-cpp-config.cmake" @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/iotsecuretunneling-cpp-config.cmake" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/IotSecureTunneling-cpp/cmake/" COMPONENT Development) diff --git a/shadow/CMakeLists.txt b/shadow/CMakeLists.txt index 0cf3f533c..0a676eed5 100644 --- a/shadow/CMakeLists.txt +++ b/shadow/CMakeLists.txt @@ -48,27 +48,27 @@ if (WIN32) endif () endif() -add_library(${PROJECT_NAME} ${AWS_IOTSHADOW_CPP_SRC}) +add_library(IotShadow-cpp ${AWS_IOTSHADOW_CPP_SRC}) -set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) +set_target_properties(IotShadow-cpp PROPERTIES LINKER_LANGUAGE CXX) set(CMAKE_C_FLAGS_DEBUGOPT "") #set warnings if (MSVC) - target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX) + target_compile_options(IotShadow-cpp PRIVATE /W4 /WX) else () - target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic -Werror) + target_compile_options(IotShadow-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror) endif () -target_compile_definitions(${PROJECT_NAME} PRIVATE $<$:DEBUG_BUILD>) +target_compile_definitions(IotShadow-cpp PRIVATE $<$:DEBUG_BUILD>) if (BUILD_SHARED_LIBS) - target_compile_definitions(${PROJECT_NAME} PUBLIC "-DAWS_IOTSHADOW_USE_IMPORT_EXPORT") - target_compile_definitions(${PROJECT_NAME} PRIVATE "-DAWS_IOTSHADOW_EXPORTS") + target_compile_definitions(IotShadow-cpp PUBLIC "-DAWS_IOTSHADOW_USE_IMPORT_EXPORT") + target_compile_definitions(IotShadow-cpp PRIVATE "-DAWS_IOTSHADOW_EXPORTS") - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotShadow-cpp + EXPORT IotShadow-cpp-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development @@ -80,20 +80,20 @@ if (BUILD_SHARED_LIBS) DESTINATION ${RUNTIME_DIRECTORY} COMPONENT Runtime) - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotShadow-cpp + EXPORT IotShadow-cpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} NAMELINK_ONLY COMPONENT Development) else() - install(TARGETS ${PROJECT_NAME} - EXPORT ${PROJECT_NAME}-targets + install(TARGETS IotShadow-cpp + EXPORT IotShadow-cpp-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development) endif() -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(IotShadow-cpp PUBLIC $ $) @@ -103,9 +103,9 @@ if (BUILD_DEPS) endif() endif() -aws_add_sanitizers(${PROJECT_NAME}) +aws_add_sanitizers(IotShadow-cpp) -target_link_libraries(${PROJECT_NAME} PUBLIC ${DEP_AWS_LIBS}) +target_link_libraries(IotShadow-cpp ${DEP_AWS_LIBS}) install(FILES ${AWS_IOTSHADOW_HEADERS} DESTINATION "include/aws/iotshadow/" COMPONENT Development) @@ -123,8 +123,8 @@ if (DEFINED SIMPLE_VERSION) ) endif() -install(EXPORT "${PROJECT_NAME}-targets" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/${TARGET_DIR}" +install(EXPORT "IotShadow-cpp-targets" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/IotShadow-cpp/cmake/${TARGET_DIR}" NAMESPACE AWS:: COMPONENT Development) @@ -133,5 +133,5 @@ configure_file("cmake/iotshadow-cpp-config.cmake" @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/iotshadow-cpp-config.cmake" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/IotShadow-cpp/cmake/" COMPONENT Development)