forked from blue/lmdbal
some fixes to help build in nested project
This commit is contained in:
parent
ceb6df6eca
commit
e7f1d48db6
4 changed files with 10 additions and 1 deletions
|
@ -9,6 +9,9 @@ option(BUILD_STATIC "Builds library as static library" ON)
|
|||
option(BUILD_TESTS "Builds tests" ON)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
|
||||
|
@ -68,7 +71,8 @@ endif ()
|
|||
|
||||
set_target_properties(storage PROPERTIES PUBLIC_HEADER "${HEADERS}")
|
||||
|
||||
target_include_directories(storage PRIVATE ${CMAKE_SOURCE_DIR})
|
||||
target_include_directories(storage PUBLIC ${CMAKE_SOURCE_DIR})
|
||||
target_include_directories(storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_include_directories(storage PRIVATE ${Qt${QT_VERSION_MAJOR}_INCLUDE_DIRS})
|
||||
target_include_directories(storage PRIVATE ${Qt${QT_VERSION_MAJOR}Core_INCLUDE_DIRS})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue