forked from hluk/FakeVim
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (40 loc) · 1.29 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 3.12)
project(fakevim VERSION 0.0.1)
# Public headers
# set(${bin}_public_headers
# fakevim/fakevimactions.h
# fakevim/fakevimhandler.h
# )
set(AUTORCC ON)
set(AUTOUIC ON)
set(AUTORCC ON)
find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(Qt5 COMPONENTS Core REQUIRED)
add_library(fakevim
fakevim/fakevimactions.cpp
fakevim/fakevimhandler.cpp
fakevim/utils/hostosinfo.cpp
fakevim/utils/osspecificaspects.h
fakevim/utils/qtcassert.cpp
fakevim/fakevimactions.h
fakevim/fakevimhandler.h
)
include_directories("fakevim")
# Source files common for all platforms
# set(${bin}_pkg_config_requires)
# include(cmake/cxx11.cmake)
# include(cmake/library.cmake)
# include(cmake/qt.cmake)
# include(cmake/pkg-config.cmake)
add_definitions( -DQTCREATOR_UTILS_STATIC_LIB )
# Files with Q_OBJECT macros to pass to moc utility
target_link_libraries(fakevim PRIVATE Qt5::Widgets)
target_link_libraries(fakevim PRIVATE Qt5::Core)
# qt5_wrap_cpp(${bin}_mocced "fakevim/fakevimhandler.h")
# Generate moc file with correct file name.
# qt5_generate_moc("fakevim/fakevimhandler.cpp" "fakevimhandler.moc")
# target_sources(${bin} PRIVATE ${${bin}_mocced} "fakevimhandler.moc")
option(BUILD_EXAMPLE "Build example")
if(BUILD_EXAMPLE)
add_subdirectory(example)
endif()