16 lines
314 B
CMake
16 lines
314 B
CMake
CMAKE_MINIMUM_REQUIRED(VERSION 3.2)
|
|
|
|
SET(TARGET "d20-dice")
|
|
SET(SOURCE
|
|
"src/dice.c"
|
|
)
|
|
|
|
PKG_CHECK_MODULES(DICE REQUIRED libdice)
|
|
|
|
INCLUDE_DIRECTORIES(${DICE_INCLUDE_DIRS})
|
|
|
|
ADD_EXECUTABLE(${TARGET} ${SOURCE})
|
|
TARGET_LINK_LIBRARIES(${TARGET} ${DICE_LIBRARIES})
|
|
|
|
INSTALL(TARGETS ${TARGET} DESTINATION ${LIB_DIR})
|