mirror of
https://github.com/ModOrganizer2/libbsarch.git
synced 2026-07-27 14:06:31 -07:00
Readded .editorconfig C wrapper can be built again Delphi library can be built again Initial cleanup of cmake files
22 lines
543 B
CMake
22 lines
543 B
CMake
cmake_minimum_required(VERSION 3.17)
|
|
|
|
project("libbsarch-examples")
|
|
|
|
include(CTest)
|
|
enable_testing()
|
|
|
|
add_subdirectory(../c99 .)
|
|
|
|
add_executable("${PROJECT_NAME}-read-write" libbsarch-read-write.cpp)
|
|
|
|
set_target_properties("${PROJECT_NAME}-read-write" PROPERTIES OUTPUT_NAME "libbsarch-read-write")
|
|
|
|
target_link_libraries("${PROJECT_NAME}-read-write" PRIVATE "libbsarch-c99")
|
|
|
|
add_dependencies(${PROJECT_NAME} "${PROJECT_NAME}-read-write")
|
|
|
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
|
|
|
include(CPack)
|