restructure project
This commit is contained in:
parent
d89ef83551
commit
796da08ef9
|
@ -15,15 +15,15 @@ FetchContent_Declare(
|
|||
|
||||
|
||||
add_library(clay
|
||||
src/color.c
|
||||
src/context.c
|
||||
src/debug.c
|
||||
src/document.c
|
||||
src/flex.c
|
||||
src/layout.c
|
||||
src/property.c
|
||||
src/render.c
|
||||
src/text.c
|
||||
src/clay/color.c
|
||||
src/clay/context.c
|
||||
src/clay/debug.c
|
||||
src/clay/document.c
|
||||
src/clay/flex.c
|
||||
src/clay/layout.c
|
||||
src/clay/property.c
|
||||
src/clay/render.c
|
||||
src/clay/text.c
|
||||
)
|
||||
|
||||
target_include_directories(clay PUBLIC include)
|
||||
|
@ -33,6 +33,6 @@ target_link_libraries(clay PRIVATE cairo)
|
|||
target_compile_options(clay PRIVATE -Wall -Werror)
|
||||
|
||||
if (PROJECT_IS_TOP_LEVEL)
|
||||
add_executable(clay-demo src/demo.c)
|
||||
add_executable(clay-demo src/clay-demo/demo.c)
|
||||
target_link_libraries(clay-demo PRIVATE clay)
|
||||
endif ()
|
Loading…
Reference in a new issue