
cmake_minimum_required(VERSION 3.5)
#set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
#SET(CMAKE_SYSTEM_PROCESSOR arm)
#SET(CMAKE_CROSSCOMPILING 1)

project(RTService)

# set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
# set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
# set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
# set(CMAKE_C_COMPILER_WORKS 1) 


# set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
 set(CMAKE_CXX_STANDARD 17)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
 set(CMAKE_CXX_EXTENSIONS OFF)

# SET(CMAKE_SYSTEM_PROCESSOR arm)
# SET(CMAKE_CROSSCOMPILING 1)


# set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
# set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)



 set(GCC_COMPILE_FLAGS "-Wall -Wextra -Werror -Wsuggest-override -Wno-register -Wno-missing-braces -Wno-unknown-pragmas -fdiagnostics-show-option")

 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COMPILE_FLAGS}")

# Find python and Boost - both are required dependencies
find_package(Boost)

set(source_files

    ${CMAKE_CURRENT_SOURCE_DIR}/src/RTService.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/monitoringTask/RTSMonitoringTask.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/utilities/RTSCoproHelper.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/include/RTSMonFrame.h

)

add_executable(${PROJECT_NAME} ${source_files})


#file( GLOB LIB_SOURCES .src/*.cpp )
#file( GLOB LIB_HEADERS lib/*.h )

# target_link_libraries(RTService 
#	PRIVATE
#		Boost 
#)cd 
#target_include_directories(${PROJECT_NAME} PRIVATE ${RTSERVICEINCLUDE})

install(TARGETS RTService DESTINATION bin)