Skip to content

Commit

Permalink
Merge pull request #15 from khumnath/khumnath-patch-cmake
Browse files Browse the repository at this point in the history
tune cmake script
  • Loading branch information
khumnath authored Aug 23, 2024
2 parents 4a13ce4 + 0e9ebb0 commit 0f4125b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Platform-specific settings
if (WIN32)
# Windows-specific settings can be added here if needed
message(STATUS "Configuring for Windows")
elseif (UNIX AND NOT APPLE)
# Linux-specific settings can be added here if needed
message(STATUS "Configuring for Linux")
endif()

# Find Qt6 package
find_package(Qt6 REQUIRED COMPONENTS Widgets Gui)
find_package(Qt6 REQUIRED COMPONENTS Widgets Gui Core)

# Include directories (Qt6_INCLUDE_DIRS is not typically needed in modern CMake)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
Expand All @@ -27,7 +25,7 @@ set(CMAKE_AUTOUIC ON)
# Helper function to add executables
function(add_nepdate_executable target_name sources headers forms resources)
add_executable(${target_name} ${sources} ${headers} ${forms} ${resources})
target_link_libraries(${target_name} PRIVATE Qt6::Widgets Qt6::Gui)
target_link_libraries(${target_name} PRIVATE Qt6::Widgets Qt6::Gui Qt6::Core)
endfunction()

### nepdate executable ###
Expand Down Expand Up @@ -69,6 +67,7 @@ set(NEPDATE_CALENDAR_SOURCES
main.cpp
mainwindow.cpp
calendarwindow.cpp
mainwindow.cpp
)

# Collect nepdate-calendar headers
Expand All @@ -77,11 +76,13 @@ set(NEPDATE_CALENDAR_HEADERS
DayTithiWidget.h
bikram.h
panchanga.h
mainwindow.h
)

# Collect nepdate-calendar forms
set(NEPDATE_CALENDAR_FORMS
calendarwindow.ui
mainwindow.ui
)

# Collect nepdate-calendar resources
Expand Down

0 comments on commit 0f4125b

Please sign in to comment.