You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
455 B
29 lines
455 B
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(Waystub)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(GDK REQUIRED gdk-3.0)
|
|
|
|
add_library(waystub SHARED src/waystub.c)
|
|
|
|
target_link_libraries(waystub
|
|
PRIVATE
|
|
${GDK_LIBRARIES}
|
|
)
|
|
|
|
target_include_directories(waystub
|
|
PUBLIC
|
|
${PROJECT_SOURCE_DIR}/include
|
|
${GDK_INCLUDE_DIRS}
|
|
)
|
|
|
|
add_executable(test
|
|
src/main.c
|
|
)
|
|
|
|
target_link_libraries( test
|
|
PRIVATE
|
|
waystub
|
|
)
|
|
|