Skip to content

Commit

Permalink
refactor: move src/core to src/ff7tk
Browse files Browse the repository at this point in the history
  • Loading branch information
sithlord48 committed Aug 28, 2024
1 parent 287b589 commit 33986af
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmake/ff7tkMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ endmacro()
macro (MAKE_TEST NAME FILE)
get_filename_component(curDir ${CMAKE_CURRENT_SOURCE_DIR} NAME)
set(DEP_LIB ff7tk)
if( NOT ${curDir} MATCHES core)
if( NOT ${curDir} MATCHES ${CMAKE_PROJECT_NAME})
string(SUBSTRING ${curDir} 0 1 FIRST_LETTER)
string(TOUPPER ${FIRST_LETTER} FIRST_LETTER)
string(REGEX REPLACE "^.(.*)" "${FIRST_LETTER}\\1" curDir_UPPER "${curDir}")
Expand Down
2 changes: 1 addition & 1 deletion demos/ff7tkQmlGallery/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ find_package(Qt6 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS
)
set(QML_IMPORT_PATH ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src ${CMAKE_BINARY_DIR}/imports CACHE STRING "" FORCE)

find_library(ff7tk ${CMAKE_BINARY_DIR}/src/core)
find_library(ff7tk ${CMAKE_BINARY_DIR}/src/ff7tk)
find_library(ff7tkData ${CMAKE_BINARY_DIR}/src/data)
find_library(ff7tkFormats ${CMAKE_BINARY_DIR}/src/formats)
find_library(ff7tkQuickControls ${CMAKE_BINARY_DIR}/src/quick/data)
Expand Down
2 changes: 1 addition & 1 deletion demos/ff7tkWidgetGallery/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ find_package(Qt6 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS
Quick
)

find_library(ff7tk ${CMAKE_BINARY_DIR}/src/core)
find_library(ff7tk ${CMAKE_BINARY_DIR}/src/ff7tk)
find_library(ff7tkData ${CMAKE_BINARY_DIR}/src/data)
find_library(ff7tkFormats ${CMAKE_BINARY_DIR}/src/formats)
find_library(ff7tkUtils ${CMAKE_BINARY_DIR}/src/utils)
Expand Down
2 changes: 1 addition & 1 deletion docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To build ff7tk you will a minimum of:


A Default Build of ff7tk will build:
- A Required Core Library (libff7tk.so, libff7tk.dylib, or ff7tk.dll)
- A Required ff7tk Library (libff7tk.so, libff7tk.dylib, or ff7tk.dll)
- All Additional Libraries ff7tkQtWidgets, ff7tkWidgets, ff7tkUtils and ff7tkFormats.
- Headers for the libraries so you can link to them
- Required CMake parts to find it post install.
Expand Down
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ else()
set(BUILD_FRAMEWORKS FALSE)
endif()

add_subdirectory(core)
add_subdirectory(ff7tk)

if(DATA)
add_subdirectory(data)
endif()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 33986af

Please sign in to comment.