mirror of
https://github.com/Tilo-K/sea-flags.git
synced 2026-01-08 07:11:02 +00:00
inital
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
build
|
||||
23
CMakeLists.txt
Normal file
23
CMakeLists.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(SeaFlags LANGUAGES CXX C)
|
||||
|
||||
enable_testing()
|
||||
add_subdirectory(tests)
|
||||
|
||||
add_library(SeaFlags STATIC
|
||||
src/seaflags.c
|
||||
)
|
||||
|
||||
target_include_directories(SeaFlags
|
||||
PUBLIC
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
|
||||
"$<INSTALL_INTERFACE:include>"
|
||||
)
|
||||
|
||||
install(TARGETS SeaFlags
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
install(DIRECTORY include/
|
||||
DESTINATION include
|
||||
)
|
||||
0
src/seaflags.c
Normal file
0
src/seaflags.c
Normal file
12
tests/CMakeLists.txt
Normal file
12
tests/CMakeLists.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
add_executable(SeaFlagTests
|
||||
test_main.c
|
||||
)
|
||||
|
||||
target_link_libraries(SeaFlagTests PRIVATE SeaFlags)
|
||||
|
||||
target_include_directories(SeaFlagTests
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../include
|
||||
)
|
||||
|
||||
add_test(NAME RunSeaFlagTests COMMAND SeaFlagTests)
|
||||
4
tests/test_main.c
Normal file
4
tests/test_main.c
Normal file
@@ -0,0 +1,4 @@
|
||||
int main(void) {
|
||||
return 0;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user