Skip to content

Commit

Permalink
Merge pull request #67 from tarhan/master
Browse files Browse the repository at this point in the history
Fix missing MOC generation for correct including
  • Loading branch information
Dax89 authored Aug 23, 2021
2 parents fea3745 + a7a8073 commit 05d1cf7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.12)

project(QHexView)
project(QHexView
LANGUAGES CXX
)

find_package(Qt5 COMPONENTS Widgets REQUIRED)

Expand All @@ -20,6 +22,11 @@ add_library(qhexview-lib STATIC
qhexview.cpp
)

target_compile_features(qhexview-lib PUBLIC cxx_std_11)
set_target_properties(qhexview-lib PROPERTIES
AUTOMOC ON
CXX_STANDARD 11
CXX_STANDARD_REQUIRED ON
)

target_link_libraries(qhexview-lib PRIVATE Qt5::Widgets)
target_include_directories(qhexview-lib PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")

0 comments on commit 05d1cf7

Please sign in to comment.