Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
1 | 1 | | |||
---|---|---|---|---|---|
2 | add_library(SnoreToastActions INTERFACE) | 2 | add_library(SnoreToastActions INTERFACE) | ||
3 | target_include_directories(SnoreToastActions INTERFACE | 3 | target_include_directories(SnoreToastActions INTERFACE | ||
4 | $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> | 4 | $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> | ||
5 | $<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/includes/snoretoast> | 5 | $<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include/snoretoast> | ||
6 | ) | 6 | ) | ||
7 | add_library(SnoreToast::SnoreToastActions ALIAS SnoreToastActions) | 7 | add_library(SnoreToast::SnoreToastActions ALIAS SnoreToastActions) | ||
8 | 8 | | |||
9 | 9 | | |||
10 | add_library(libsnoretoast STATIC snoretoasts.cpp toasteventhandler.cpp linkhelper.cpp utils.cpp) | 10 | add_library(libsnoretoast STATIC snoretoasts.cpp toasteventhandler.cpp linkhelper.cpp utils.cpp) | ||
11 | target_link_libraries(libsnoretoast PUBLIC runtimeobject shlwapi SnoreToast::SnoreToastActions) | 11 | target_link_libraries(libsnoretoast PUBLIC runtimeobject shlwapi SnoreToast::SnoreToastActions) | ||
12 | target_compile_definitions(libsnoretoast PRIVATE UNICODE _UNICODE __WRL_CLASSIC_COM_STRICT__ WIN32_LEAN_AND_MEAN NOMINMAX) | 12 | target_compile_definitions(libsnoretoast PRIVATE UNICODE _UNICODE __WRL_CLASSIC_COM_STRICT__ WIN32_LEAN_AND_MEAN NOMINMAX) | ||
13 | target_compile_definitions(libsnoretoast PRIVATE | 13 | target_compile_definitions(libsnoretoast PRIVATE | ||
Show All 14 Lines | |||||
28 | target_compile_definitions(SnoreToast PRIVATE UNICODE _UNICODE WIN32_LEAN_AND_MEAN NOMINMAX) | 28 | target_compile_definitions(SnoreToast PRIVATE UNICODE _UNICODE WIN32_LEAN_AND_MEAN NOMINMAX) | ||
29 | # if there are changes to the callback mechanism we need to change the uuid for the activator SNORETOAST_CALLBACK_UUID | 29 | # if there are changes to the callback mechanism we need to change the uuid for the activator SNORETOAST_CALLBACK_UUID | ||
30 | target_compile_definitions(SnoreToast PRIVATE | 30 | target_compile_definitions(SnoreToast PRIVATE | ||
31 | SNORETOAST_CALLBACK_UUID="{383803B6-AFDA-4220-BFC3-0DBF810106BF}" | 31 | SNORETOAST_CALLBACK_UUID="{383803B6-AFDA-4220-BFC3-0DBF810106BF}" | ||
32 | ) | 32 | ) | ||
33 | add_executable(SnoreToast::SnoreToast ALIAS SnoreToast) | 33 | add_executable(SnoreToast::SnoreToast ALIAS SnoreToast) | ||
34 | 34 | | |||
35 | install(TARGETS libsnoretoast SnoreToast SnoreToastActions EXPORT LibSnoreToastConfig RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) | 35 | install(TARGETS libsnoretoast SnoreToast SnoreToastActions EXPORT LibSnoreToastConfig RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) | ||
36 | install(FILES snoretoastactions.h DESTINATION includes/snoretoast) | 36 | install(FILES snoretoastactions.h DESTINATION include/snoretoast) | ||
37 | install(EXPORT LibSnoreToastConfig DESTINATION lib/cmake/libsnoretoast NAMESPACE SnoreToast::) | 37 | install(EXPORT LibSnoreToastConfig DESTINATION lib/cmake/libsnoretoast NAMESPACE SnoreToast::) |