Skip to content

Commit a07d426

Browse files
committed
🎉 Create project structure
0 parents  commit a07d426

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea/
2+
cmake-*/

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cmake_minimum_required(VERSION 3.27)
2+
project(frxml)
3+
4+
add_subdirectory(frxml)
5+
add_subdirectory(test)

frxml/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
project(frxml)
2+
3+
file(GLOB SOURCES src/*.cxx)
4+
file(GLOB_RECURSE HEADERS *.h)
5+
6+
add_library(frxml STATIC ${SOURCES} ${HEADERS})
7+
target_include_directories(frxml PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/internal)
8+
target_include_directories(frxml PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
9+
target_compile_definitions(frxml PUBLIC cxx_std_17)

test/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
project(frxml-test)
2+
3+
file(GLOB SOURCES src/*.cxx)
4+
file(GLOB HEADERS *.h)
5+
6+
add_executable(frxml-test ${SOURCES} ${HEADERS})
7+
target_include_directories(frxml-test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
8+
target_compile_definitions(frxml-test PUBLIC cxx_std_17)
9+
target_link_libraries(frxml-test PUBLIC frxml)

0 commit comments

Comments
 (0)