-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (31 loc) · 917 Bytes
/
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
cmake_minimum_required(VERSION 3.16.3)
project(poker VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_AUTORCC ON)
add_compile_options(-fdiagnostics-color=always)
find_package(Qt5 COMPONENTS Quick Widgets REQUIRED)
find_package(cpr REQUIRED)
find_package(Threads)
add_executable(poker
src/main.cpp
src/cards_helper.cpp
src/connector.cpp
Resources/resources.qrc
)
target_include_directories(poker PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(poker
PRIVATE
Qt5::Widgets
Qt5::Quick
cpr::cpr
Threads::Threads
)
add_custom_target(run
COMMAND ./poker
WORKING_DIRECTORY ${CMAKE_PROJECT_DIR}
)
#pip install conan
#conan install . -if build -s compiler=gcc -s compiler.libcxx=libstdc++11 --build=missing
#cmake -B build -GNinja -DCMAKE_TOOLCHAIN_FILE=build/conan_paths.cmake