Skip to content
Snippets Groups Projects
Commit 02e9f1f7 authored by Patrick MADELA's avatar Patrick MADELA
Browse files

Fix template for Windows

parent c42069cc
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,9 @@ project(${PROJECT_NAME} CXX)
find_package({{as_name(require)}} CONFIG REQUIRED)
{% endfor -%}
{% endif -%}
if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
find_package(crashreporting2 CONFIG)
endif()
add_compile_definitions(PROJECT_NAME=${PROJECT_NAME})
add_compile_definitions(PROJECT_VERSION=${PROJECT_VERSION})
......@@ -27,6 +29,8 @@ target_include_directories(${EXECUTABLE_NAME} PRIVATE ${includedirs})
target_link_libraries(${EXECUTABLE_NAME} PRIVATE {{as_name(require)}}::{{as_name(require)}})
{% endfor -%}
{% endif -%}
if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_link_libraries(${EXECUTABLE_NAME} PRIVATE crashreporting2::crashreporting2)
endif()
install(TARGETS ${EXECUTABLE_NAME} DESTINATION "." RUNTIME DESTINATION bin)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment