Skip to content

Commit

Permalink
add some linux compile definitions to QMLcomponents
Browse files Browse the repository at this point in the history
  • Loading branch information
RensDofferhoff committed Feb 23, 2024
1 parent ea4a051 commit a7f30c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions QMLComponents/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ add_library(QMLComponents ${SOURCE_FILES} ${HEADER_FILES})
if(LINUX)
target_link_libraries(QMLComponents PUBLIC ${_LIB_RT})
target_link_options(QMLComponents PUBLIC -lrt)
if(LINUX_LOCAL_BUILD)
target_compile_definitions(QMLComponents PUBLIC LINUX_LOCAL_BUILD)
endif()
if(FLATPAK_USED)
target_compile_definitions(QMLComponents PUBLIC FLATPAK_USED)
endif()
endif()

configure_file(${CMAKE_CURRENT_LIST_DIR}/utilities/appdirs.h.in
Expand Down

0 comments on commit a7f30c0

Please sign in to comment.