Files
Tart/source/CMakeLists.txt

22 lines
574 B
CMake
Raw Normal View History

2025-01-25 08:29:43 -08:00
project(TartLib VERSION 0.1)
2025-01-28 13:36:01 -08:00
set( CMAKE_STATIC_LIBRARY_PREFIX "")
2025-01-30 03:31:12 +00:00
set( CMAKE_C_STANDARD 11)
set( CMAKE_C_STANDARD_REQUIRED ON)
2025-01-28 13:36:01 -08:00
2025-01-29 10:51:20 -08:00
set(LIB_SOURCES
tart.c
2025-01-25 08:29:43 -08:00
)
2025-01-28 13:36:01 -08:00
2025-01-29 10:51:20 -08:00
add_library(${PROJECT_NAME} STATIC ${LIB_SOURCES})
2025-01-25 12:57:45 -08:00
target_include_directories(${PROJECT_NAME} BEFORE PUBLIC "../includes/")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_compile_definitions(${PROJECT_NAME} PUBLIC "_LINUX")
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_compile_definitions(${PROJECT_NAME} PUBLIC "_WIN32")
target_compile_definitions(${PROJECT_NAME} PUBLIC "_WIN64")
endif()