mirror of https://github.com/procxx/kepka.git
Add cotire to targets
This commit is contained in:
parent
ad14e16bec
commit
aa09631338
|
@ -1,6 +1,9 @@
|
||||||
cmake_minimum_required(VERSION 3.7)
|
cmake_minimum_required(VERSION 3.7)
|
||||||
project(tdesktop)
|
project(tdesktop)
|
||||||
|
|
||||||
|
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cotire/CMake")
|
||||||
|
include(cotire)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 14)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
|
@ -276,15 +276,18 @@ if (LINUX)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(SourceFiles/core)
|
|
||||||
|
|
||||||
##======================
|
##======================
|
||||||
## Telegram
|
## Telegram
|
||||||
##======================
|
##======================
|
||||||
|
|
||||||
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/SourceFiles")
|
||||||
|
|
||||||
add_executable(Telegram ${APP_SRC} ${PLAT_SRC})
|
add_executable(Telegram ${APP_SRC} ${PLAT_SRC})
|
||||||
target_link_libraries(Telegram Qt5::Core Qt5::Widgets)
|
target_link_libraries(Telegram Qt5::Core Qt5::Widgets)
|
||||||
|
|
||||||
|
set_target_properties(Telegram PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "SourceFiles/stdafx.h")
|
||||||
|
cotire(Telegram)
|
||||||
|
|
||||||
##======================
|
##======================
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
@ -302,6 +305,7 @@ endif()
|
||||||
##======================
|
##======================
|
||||||
|
|
||||||
#add_executable(Updater ${UPD_SRC})
|
#add_executable(Updater ${UPD_SRC})
|
||||||
|
#cotire(Updater)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue