d20/dice/CMakeLists.txt

16 lines
314 B
CMake
Raw Normal View History

2019-08-25 15:11:36 +02:00
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})