Files
ivy/common/CMakeLists.txt

14 lines
468 B
CMake
Raw Normal View History

2024-11-12 19:56:02 +00:00
file(GLOB_RECURSE common_sources *.c *.h include/ivy/*.h)
if (WIN32)
set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/build/common.rc)
endif ()
2024-12-06 19:48:20 +00:00
if (IVY_STATIC)
add_library(ivy-common STATIC ${common_sources} ${rc_file})
2024-12-06 19:48:20 +00:00
else ()
add_library(ivy-common SHARED ${common_sources} ${rc_file})
2024-12-06 19:48:20 +00:00
endif ()
2024-11-12 19:56:02 +00:00
target_include_directories(ivy-common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/)
2024-12-06 19:48:20 +00:00
target_compile_definitions(ivy-common PRIVATE IVY_EXPORT=1 IVY_STATIC=${IVY_STATIC})