equal
deleted
inserted
replaced
3 # Qt libraries: |
3 # Qt libraries: |
4 set(CMAKE_INCLUDE_CURRENT_DIR ON) # Find includes in corresponding build directories |
4 set(CMAKE_INCLUDE_CURRENT_DIR ON) # Find includes in corresponding build directories |
5 set(CMAKE_AUTOMOC ON) # Instruct CMake to run moc automatically when needed |
5 set(CMAKE_AUTOMOC ON) # Instruct CMake to run moc automatically when needed |
6 set(CMAKE_AUTOUIC ON) # Create code from a list of Qt designer ui files |
6 set(CMAKE_AUTOUIC ON) # Create code from a list of Qt designer ui files |
7 find_package(Qt5Widgets CONFIG REQUIRED) # Find the QtWidgets library |
7 find_package(Qt5Widgets CONFIG REQUIRED) # Find the QtWidgets library |
|
8 find_package(Qt5Charts CONFIG REQUIRED) |
8 |
9 |
9 # Relpipe libraries: |
10 # Relpipe libraries: |
10 INCLUDE(FindPkgConfig) |
11 INCLUDE(FindPkgConfig) |
11 pkg_check_modules (RELPIPE_LIB_READER relpipe-lib-reader.cpp relpipe-lib-cli.cpp) |
12 pkg_check_modules (RELPIPE_LIB_READER relpipe-lib-reader.cpp relpipe-lib-cli.cpp) |
12 include_directories(${RELPIPE_LIB_READER_INCLUDE_DIRS}) |
13 include_directories(${RELPIPE_LIB_READER_INCLUDE_DIRS}) |
26 ) |
27 ) |
27 |
28 |
28 # Link libraries: |
29 # Link libraries: |
29 target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIB_READER_LIBRARIES}) |
30 target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIB_READER_LIBRARIES}) |
30 target_link_libraries(${EXECUTABLE_FILE} Qt5::Widgets) |
31 target_link_libraries(${EXECUTABLE_FILE} Qt5::Widgets) |
|
32 target_link_libraries(${EXECUTABLE_FILE} Qt5::Charts) |
31 |
33 |
32 |
34 |
33 # Print all variables: |
35 # Print all variables: |
34 #macro(print_all_variables) |
36 #macro(print_all_variables) |
35 # message(STATUS "print_all_variables------------------------------------------{") |
37 # message(STATUS "print_all_variables------------------------------------------{") |