-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (31 loc) · 922 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
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.8)
project("fitconvert")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS ON)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(FITSDK_SRC
"fitsdk/fit_convert.h"
"fitsdk/fit_crc.c"
"fitsdk/fit_crc.h"
"fitsdk/fit_example.c"
"fitsdk/fit_example.h"
"fitsdk/fit_product.h"
"fitsdk/fit_ram.c"
"fitsdk/fit_ram.h"
"fitsdk/fit.c"
"fitsdk/fit.h"
"fitsdk/fit_config.h"
"fitsdk/fit_convert.c"
)
set(TARGET_SRC
"converter.cpp"
"parser.cpp"
"parser.h"
)
execute_process(COMMAND echo "Run conan install...")
execute_process(COMMAND conan install . --build missing WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
include(${PROJECT_SOURCE_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
add_executable(${PROJECT_NAME} ${TARGET_SRC} ${FITSDK_SRC})
target_link_libraries(${PROJECT_NAME} PRIVATE ${CONAN_LIBS})