# cmake_minimum_required(VERSION 3.10) # Specify a minimum CMake version # set(CMAKE_CXX_STANDARD 20) # set(CMAKE_CXX_STANDARD_REQUIRED ON) # project(trpclong_l4_integrate) # Replace with your project's name # set(MODULE_NAME "trpclong_l4_runExex") # file(GLOB_RECURSE SRC_FILES # ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp # ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c # ) # add_executable(${MODULE_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/src/TRPC_Long_Itg_ert_rtw/main_call_trpclong.cpp ${SRC_FILES}) # target_include_directories(${MODULE_NAME} PRIVATE # ${GENERATED_DIRS} # ${AP_INCLUDE_DIRS} # ${CMAKE_CURRENT_SOURCE_DIR}/src/ # ${CMAKE_CURRENT_SOURCE_DIR}/src/TRPC_Long_Itg_ert_rtw/ # ${CMAKE_SOURCE_DIR}/generated/includes # ${CMAKE_SOURCE_DIR}/modules/common/inc/ap-cm-wrapper) # target_link_libraries(${MODULE_NAME} # PRIVATE # ${AP_LIBRARIES} # pthread # jsoncpp # yaml-cpp # -llog # common # ) cmake_minimum_required(VERSION 3.10) # Specify a minimum CMake version project(trpclong_l4_integrate) set(MODULE_NAME "dpc_trpclong") file(GLOB_RECURSE SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/wrappers/*.cpp ${CMAKE_SOURCE_DIR}/generated/src/jac/ap/canservice/*.cpp ${CMAKE_SOURCE_DIR}/generated/src/jac/ap/vedservice/*.cpp ${CMAKE_SOURCE_DIR}/generated/src/jac/ap/dmservice/*.cpp ${CMAKE_SOURCE_DIR}/generated/src/jac/ap/emservice/*.cpp ${CMAKE_SOURCE_DIR}/generated/src/jac/ap/trpclongservice/*.cpp ) #add_executable(${MODULE_NAME} src/TRPC_Long_Itg_ert_rtw/main_call_trpclong.cpp src/TRPCLongWrapper.cpp src/TRPC_Long_Itg_ert_rtw/TRPC_Long_Itg.c src/TRPC_Long_Itg_ert_rtw/TRPC_Long_Itg_data.c ${SRC_FILES}) # src/TRPC_Lat_CG_ert_rtw/ert_main.c # List your source files add_executable(${MODULE_NAME} src/TRPCLongWrapper.cpp src/pid_controller.cpp src/TRPC_Long_Itg_ert_rtw/TRPC_Long_Itg.c src/TRPC_Long_Itg_ert_rtw/TRPC_Long_Itg_data.c src/TRPC_Long_Itg_ert_rtw/rt_nonfinite.c src/TRPC_Long_Itg_ert_rtw/rtGetInf.c src/TRPC_Long_Itg_ert_rtw/rtGetNaN.c ${SRC_FILES}) # src/TRPC_Lat_CG_ert_rtw/ert_main.c # List your source files target_include_directories(${MODULE_NAME} PRIVATE src/ src/TRPC_Long_Itg_ert_rtw/ src/wrappers/ ${CMAKE_SOURCE_DIR}/generated/includes ${CMAKE_SOURCE_DIR}/modules/common/inc/ap-cm-wrapper) target_link_libraries(${MODULE_NAME} PRIVATE ${AP_LIBRARIES} pthread jsoncpp yaml-cpp -llog common )