init
commit
7fa5e462df
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "libs/BLT"]
|
||||||
|
path = libs/BLT
|
||||||
|
url = https://github.com/tri11paragon/blt
|
|
@ -0,0 +1,63 @@
|
||||||
|
cmake_minimum_required(VERSION 3.25)
|
||||||
|
project(lilfbtf5)
|
||||||
|
|
||||||
|
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
||||||
|
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
||||||
|
option(ENABLE_TSAN "Enable the thread data race sanitizer" OFF)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
|
add_subdirectory(libs/BLT)
|
||||||
|
|
||||||
|
file(GLOB_RECURSE PROJECT_BUILD_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
|
||||||
|
file(GLOB_RECURSE PROJECT_TESTS_BUILD_FILES "${CMAKE_CURRENT_SOURCE_DIR}/tests/src/*.cpp")
|
||||||
|
|
||||||
|
add_library(lilfbtf5 ${PROJECT_BUILD_FILES})
|
||||||
|
|
||||||
|
target_include_directories(lilfbtf5 PUBLIC include/)
|
||||||
|
target_link_libraries(lilfbtf5 PUBLIC BLT)
|
||||||
|
|
||||||
|
target_compile_options(lilfbtf5 PRIVATE -Wall -Wextra -Werror -Wpedantic -Wno-comment)
|
||||||
|
target_link_options(lilfbtf5 PRIVATE -Wall -Wextra -Werror -Wpedantic -Wno-comment)
|
||||||
|
|
||||||
|
if (${ENABLE_ADDRSAN} MATCHES ON)
|
||||||
|
target_compile_options(lilfbtf5 PRIVATE -fsanitize=address)
|
||||||
|
target_link_options(lilfbtf5 PRIVATE -fsanitize=address)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (${ENABLE_UBSAN} MATCHES ON)
|
||||||
|
target_compile_options(lilfbtf5 PRIVATE -fsanitize=undefined)
|
||||||
|
target_link_options(lilfbtf5 PRIVATE -fsanitize=undefined)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (${ENABLE_TSAN} MATCHES ON)
|
||||||
|
target_compile_options(lilfbtf5 PRIVATE -fsanitize=thread)
|
||||||
|
target_link_options(lilfbtf5 PRIVATE -fsanitize=thread)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
project(lilfbtf5_test)
|
||||||
|
|
||||||
|
add_executable(lilfbtf5_test ${PROJECT_TESTS_BUILD_FILES})
|
||||||
|
|
||||||
|
target_include_directories(lilfbtf5_test PUBLIC tests/include/)
|
||||||
|
target_link_libraries(lilfbtf5_test PUBLIC lilfbtf5)
|
||||||
|
|
||||||
|
target_compile_options(lilfbtf5_test PRIVATE -Wall -Wextra -Werror -Wpedantic -Wno-comment)
|
||||||
|
target_link_options(lilfbtf5_test PRIVATE -Wall -Wextra -Werror -Wpedantic -Wno-comment)
|
||||||
|
|
||||||
|
if (${ENABLE_ADDRSAN} MATCHES ON)
|
||||||
|
target_compile_options(lilfbtf5_test PRIVATE -fsanitize=address)
|
||||||
|
target_link_options(lilfbtf5_test PRIVATE -fsanitize=address)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (${ENABLE_UBSAN} MATCHES ON)
|
||||||
|
target_compile_options(lilfbtf5_test PRIVATE -fsanitize=undefined)
|
||||||
|
target_link_options(lilfbtf5_test PRIVATE -fsanitize=undefined)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (${ENABLE_TSAN} MATCHES ON)
|
||||||
|
target_compile_options(lilfbtf5_test PRIVATE -fsanitize=thread)
|
||||||
|
target_link_options(lilfbtf5_test PRIVATE -fsanitize=thread)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
project(lilfbtf5)
|
|
@ -0,0 +1,29 @@
|
||||||
|
/*
|
||||||
|
* <Short Description>
|
||||||
|
* Copyright (C) 2024 Brett Terpstra
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LILFBTF5_LILFBTF_H
|
||||||
|
#define LILFBTF5_LILFBTF_H
|
||||||
|
|
||||||
|
namespace lilfb
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //LILFBTF5_LILFBTF_H
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 68f6a0af44fe8ba5044a7f37b8bac9809ab709f1
|
|
@ -0,0 +1,26 @@
|
||||||
|
/*
|
||||||
|
* <Short Description>
|
||||||
|
* Copyright (C) 2024 Brett Terpstra
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <lilfbtf/lilfbtf.h>
|
||||||
|
|
||||||
|
namespace lilfb
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
std::cout << "Hello, World!" << std::endl;
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue