2023-05-04 16:37:33 +08:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
|
project(UR)
|
|
|
|
|
|
2023-06-15 15:43:18 +08:00
|
|
|
|
2023-05-04 16:37:33 +08:00
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
2024-10-22 10:25:48 +08:00
|
|
|
|
2023-10-09 09:29:21 +08:00
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")
|
|
|
|
|
|
2023-05-04 16:37:33 +08:00
|
|
|
find_package(Aurora REQUIRED)
|
2023-05-12 14:37:23 +08:00
|
|
|
find_package(Parser REQUIRED)
|
2023-05-04 16:37:33 +08:00
|
|
|
file(GLOB_RECURSE cpp_files ./src/*.cpp)
|
|
|
|
|
file(GLOB_RECURSE cxx_files ./src/*.cxx)
|
2023-05-05 16:48:34 +08:00
|
|
|
file(GLOB_RECURSE header_files ./src/*.h)
|
2024-10-22 10:25:48 +08:00
|
|
|
add_executable(UR ${cpp_files} ${cxx_files} ${header_files} ${Aurora_Source})
|
2023-12-22 11:17:18 +08:00
|
|
|
|
|
|
|
|
#target_compile_options(UR PUBLIC ${Aurora_Complie_Options} "-march=native")
|
2023-05-25 16:15:21 +08:00
|
|
|
target_include_directories(UR PUBLIC ./src/)
|
2023-05-04 16:37:33 +08:00
|
|
|
target_include_directories(UR PUBLIC ${Aurora_INCLUDE_DIRS})
|
2023-05-12 14:37:23 +08:00
|
|
|
target_include_directories(UR PUBLIC ${Parser_INCLUDE_DIRS})
|
2023-10-09 09:29:21 +08:00
|
|
|
|
2024-10-22 10:25:48 +08:00
|
|
|
target_link_libraries(UR PUBLIC ${Aurora_Libraries})
|
2023-06-15 15:43:18 +08:00
|
|
|
|
2024-10-22 10:25:48 +08:00
|
|
|
target_link_libraries(UR PUBLIC matio)
|
|
|
|
|
target_link_libraries(UR PUBLIC Parser)
|