Commit 9ee6fce2 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

cmake: added basic CMake support

parent c7c2f23c
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(bits VERSION 0.9.99 LANGUAGES CXX)
add_executable(test_parameter test/parameter.cpp)
set_target_properties(test_parameter PROPERTIES
COMPILE_DEFINITIONS EXAMPLES_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/test\"
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON)
target_compile_definitions(test_parameter
PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:_CRT_SECURE_NO_WARNINGS>
$<$<CXX_COMPILER_ID:MSVC>:_SCL_SECURE_NO_WARNINGS>)
target_include_directories(test_parameter PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
add_test(test_parameter test_parameter)
enable_testing()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment