25 lines
430 B
CMake
25 lines
430 B
CMake
|
cmake_minimum_required(VERSION 3.0.0)
|
||
|
project(buttplug-cpp VERSION 0.1.0)
|
||
|
|
||
|
include(CTest)
|
||
|
enable_testing()
|
||
|
|
||
|
file(GLOB SRCS src/*.cpp)
|
||
|
|
||
|
add_library(buttplug-cpp ${SRCS})
|
||
|
|
||
|
target_include_directories(buttplug-cpp
|
||
|
PUBLIC inc
|
||
|
)
|
||
|
|
||
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
||
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
||
|
include(CPack)
|
||
|
|
||
|
|
||
|
project(test-app)
|
||
|
|
||
|
add_executable(test-app test.cpp)
|
||
|
target_link_libraries(test-app buttplug-cpp)
|
||
|
|