summaryrefslogtreecommitdiffstats
path: root/libsettings/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libsettings/CMakeLists.txt')
-rw-r--r--libsettings/CMakeLists.txt20
1 files changed, 11 insertions, 9 deletions
diff --git a/libsettings/CMakeLists.txt b/libsettings/CMakeLists.txt
index 4ec019a5..9ae48354 100644
--- a/libsettings/CMakeLists.txt
+++ b/libsettings/CMakeLists.txt
@@ -1,4 +1,4 @@
-project(libmmcsettings)
+project(libSettings)
# Find Qt
find_package(Qt5Core REQUIRED)
@@ -7,12 +7,11 @@ find_package(Qt5Core REQUIRED)
include_directories(${Qt5Base_INCLUDE_DIRS})
include_directories(${Qt5Network_INCLUDE_DIRS})
-# Include utils library headers.
-include_directories(${CMAKE_SOURCE_DIR}/libutil/include)
-
SET(LIBSETTINGS_HEADERS
include/libsettings_config.h
+include/inifile.h
+
include/settingsobject.h
include/setting.h
include/overridesetting.h
@@ -22,6 +21,8 @@ include/inisettingsobject.h
)
SET(LIBSETTINGS_SOURCES
+src/inifile.cpp
+
src/settingsobject.cpp
src/setting.cpp
src/overridesetting.cpp
@@ -31,10 +32,11 @@ src/inisettingsobject.cpp
)
# Set the include dir path.
-SET(LIBMMCSETTINGS_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include" PARENT_SCOPE)
+SET(LIBSETTINGS_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include" PARENT_SCOPE)
+include_directories(${LIBSETTINGS_INCLUDE_DIR})
-add_definitions(-DLIBMMCSETTINGS_LIBRARY)
+add_definitions(-DLIBSETTINGS_LIBRARY)
-add_library(libmmcsettings SHARED ${LIBSETTINGS_SOURCES} ${LIBSETTINGS_HEADERS})
-qt5_use_modules(libmmcsettings Core)
-target_link_libraries(libmmcsettings libmmcutil)
+add_library(libSettings SHARED ${LIBSETTINGS_SOURCES} ${LIBSETTINGS_HEADERS})
+qt5_use_modules(libSettings Core)
+target_link_libraries(libSettings)