mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 13:00:15 +02:00
Uses ALIAS targets to propagate include directories to targets rather than polluting the preprocessor with an extra include directory it usually doesn't need. Signed-off-by: crueter <crueter@eden-emu.dev>
6 lines
191 B
CMake
6 lines
191 B
CMake
set(NAME tiny-json)
|
|
set(SRCS tiny-json.c)
|
|
add_library(${NAME} STATIC ${SRCS})
|
|
|
|
target_include_directories(${NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR})
|
|
add_library(${NAME}::${NAME} ALIAS ${NAME}) |