This repository has been archived on 2021-04-17. You can view files and clone it, but cannot push or open issues or pull requests.
uIRC/CMakeLists.txt

19 lines
659 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.16)
project(microirc LANGUAGES C)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic")
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/archive)
set(build_FILES src/uirc.c)
if ( USE_HELPERS )
message("Helper functions are going to be built.")
set(build_FILES src/uirc.c src/helpers.c)
endif()
add_library(uirc SHARED ${build_FILES})
set_property(TARGET uirc PROPERTY C_STANDARD 11)
install(TARGETS uirc DESTINATION ${CMAKE_INSTALL_BINDIR})