gctl/dep/tesseroids/test/CMakeLists.txt

13 lines
388 B
CMake
Raw Normal View History

2024-09-10 15:45:07 +08:00
# 设置编译选项
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -lm")
endif()
# 设置可执行文件的输出地址
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin/test)
# 添加可执行程序名称
add_executable(test_all test_all.c)
# 链接动态库
target_link_libraries(test_all PUBLIC tess)