Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ endif ()

# compiler flags
# TODO: separate GCC and Clang warnings; add more
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set(
CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
-Wall \
Expand All @@ -26,6 +27,7 @@ set(
-Wformat-security \
-Wnon-virtual-dtor \
")
endif(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og")

Expand Down Expand Up @@ -55,6 +57,8 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(sources main.cpp qheifhandler.cpp)

link_directories(${libheif_LIBRARY_DIRS})

add_library(qheif MODULE ${sources})

target_link_libraries(
Expand All @@ -64,6 +68,8 @@ target_link_libraries(
${libheif_LIBRARIES}
)

target_include_directories(qheif PRIVATE ${libheif_INCLUDE_DIRS})

#
# installation
#
Expand Down