diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9c5419f..efec8b6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,37 +1,37 @@ add_library(SnoreToastActions INTERFACE) target_include_directories(SnoreToastActions INTERFACE $ $ ) add_library(SnoreToast::SnoreToastActions ALIAS SnoreToastActions) add_library(libsnoretoast STATIC snoretoasts.cpp toasteventhandler.cpp linkhelper.cpp utils.cpp) target_link_libraries(libsnoretoast PUBLIC runtimeobject shlwapi SnoreToast::SnoreToastActions) target_compile_definitions(libsnoretoast PRIVATE UNICODE _UNICODE __WRL_CLASSIC_COM_STRICT__ WIN32_LEAN_AND_MEAN NOMINMAX) target_compile_definitions(libsnoretoast PRIVATE SNORETOAST_VERSION_MAJOR=${PROJECT_VERSION_MAJOR} SNORETOAST_VERSION_MINOR=${PROJECT_VERSION_MINOR} SNORETOAST_VERSION_PATCH=${PROJECT_VERSION_PATCH} ) target_compile_definitions(libsnoretoast PUBLIC __WRL_CLASSIC_COM_STRICT__) target_include_directories(libsnoretoast PUBLIC $) set_target_properties(libsnoretoast PROPERTIES EXPORT_NAME LibSnoreToast) add_library(SnoreToast::LibSnoreToast ALIAS libsnoretoast) generate_export_header(libsnoretoast) create_icon_rc(${PROJECT_SOURCE_DIR}/data/zzz.ico TOAST_ICON) -add_executable(SnoreToast WIN32 main.cpp ${TOAST_ICON}) -target_link_libraries(SnoreToast PRIVATE SnoreToast::LibSnoreToast snoreretoastsources) -target_compile_definitions(SnoreToast PRIVATE UNICODE _UNICODE WIN32_LEAN_AND_MEAN NOMINMAX) +add_executable(snoretoast WIN32 main.cpp ${TOAST_ICON}) +target_link_libraries(snoretoast PRIVATE SnoreToast::LibSnoreToast snoreretoastsources) +target_compile_definitions(snoretoast PRIVATE UNICODE _UNICODE WIN32_LEAN_AND_MEAN NOMINMAX) # if there are changes to the callback mechanism we need to change the uuid for the activator SNORETOAST_CALLBACK_UUID -target_compile_definitions(SnoreToast PRIVATE +target_compile_definitions(snoretoast PRIVATE SNORETOAST_CALLBACK_UUID="{383803B6-AFDA-4220-BFC3-0DBF810106BF}" ) -add_executable(SnoreToast::SnoreToast ALIAS SnoreToast) +add_executable(SnoreToast::SnoreToast ALIAS snoretoast) -install(TARGETS SnoreToast SnoreToastActions EXPORT LibSnoreToastConfig RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) +install(TARGETS snoretoast SnoreToastActions EXPORT LibSnoreToastConfig RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) install(FILES snoretoastactions.h DESTINATION include/snoretoast) install(EXPORT LibSnoreToastConfig DESTINATION lib/cmake/libsnoretoast NAMESPACE SnoreToast::)