c-test/CMakeLists.txt

26 lines
510 B
CMake
Raw Normal View History

2024-11-04 14:44:45 -05:00
cmake_minimum_required(VERSION 3.5.0)
project(Test_Project VERSION 0.1.0 LANGUAGES C)
# Add more c files in here
2024-11-04 14:47:49 -05:00
# add_executable(Test_Project
# main.c
# hello.c
# math_functions.c
# struct_test.c
# )
2024-11-04 14:44:45 -05:00
add_executable(Test_Project
2024-11-04 14:47:49 -05:00
src/main.c
src/hello.c
src/math_functions.c
src/struct_test.c
2024-11-04 14:44:45 -05:00
)
# https://discourse.cmake.org/t/how-to-properly-include-header-files/4762
# Add header files in here, not sure if I did this right.
target_include_directories(Test_Project
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}"
)