12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- cmake_minimum_required(VERSION 3.5)
- set(this_exe timer)
- file(GLOB LOCAL_SRC
- ${CMAKE_CURRENT_SOURCE_DIR}/*.qrc
- ${CMAKE_CURRENT_SOURCE_DIR}/*.rc
- ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/*.ui
- ${CMAKE_SOURCE_DIR}/External/common/LightLog/*.cpp
- ${CMAKE_SOURCE_DIR}/External/common/Logs/*.cpp
- ${CMAKE_SOURCE_DIR}/External/common/ThreadPool/*.cpp
-
- )
- add_executable(${this_exe}
-
- ${GLOBAL_SRC}
- ${LOCAL_SRC}
- )
- target_include_directories(${this_exe} PRIVATE
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_SOURCE_DIR}/External/common/LightLog
- ${CMAKE_SOURCE_DIR}/External/common
- ${CMAKE_SOURCE_DIR}/External/common/FmtLog
- ${CMAKE_SOURCE_DIR}/External/common/Timer
- ${CMAKE_SOURCE_DIR}/External/common/ThreadPool
- ${CMAKE_SOURCE_DIR}/External/common/RingQueue
- )
- target_link_libraries(${this_exe} PRIVATE
- Qt5::Widgets
- Qt5::Core
- Qt5::Network
-
-
-
- )
- target_link_libraries(${this_exe} PRIVATE
- fmt::fmt
- spdlog::spdlog
- ${CURL_LIBRARY}
- )
- if(CMAKE_CXX_COMPILER_VERSION LESS 9.0)
- target_link_libraries(${this_exe} PRIVATE
- stdc++fs
- )
- endif()
-
|