drogonCMS-cmake into main branch that replaces make plus other things #1

Merged
sharpetronics merged 36 commits from drogonCMS-cmake into master 2024-01-18 19:01:07 -05:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit b8e26dff9c - Show all commits

View File

@ -102,6 +102,9 @@ add_definitions(${GTK4_CFLAGS_OTHER} ${ADW_CFLAGS_OTHER})
# Adding something we can run - Output name matches target name # Adding something we can run - Output name matches target name
add_executable(DrogonCMS src/base.c) add_executable(DrogonCMS src/base.c)
# Include drogon source code locally
add_subdirectory(vendors/drogon)
# This is a "default" library, and will match the *** variable setting. # This is a "default" library, and will match the *** variable setting.
# Other common choices are STATIC, SHARED, and MODULE # Other common choices are STATIC, SHARED, and MODULE
# Including header files here helps IDEs but is not required. # Including header files here helps IDEs but is not required.
@ -112,7 +115,7 @@ add_executable(DrogonCMS src/base.c)
# Make sure you link your targets with this command. It can also link libraries and # Make sure you link your targets with this command. It can also link libraries and
# even flags, so linking a target that does not exist will not give a configure-time error. # even flags, so linking a target that does not exist will not give a configure-time error.
target_include_directories(${PROJECT_NAME} PUBLIC ${GTK4_LIBRARIES} ${ADW_LIBRARIES}) target_include_directories(${PROJECT_NAME} PUBLIC ${GTK4_LIBRARIES} ${ADW_LIBRARIES})
target_link_libraries(${PROJECT_NAME} PRIVATE ${GTK4_LIBRARIES} ${ADW_LIBRARIES}) target_link_libraries(${PROJECT_NAME} PRIVATE ${GTK4_LIBRARIES} ${ADW_LIBRARIES} ${DROGON_LIBRARIES})
# Target Compile Options # Target Compile Options
target_compile_options(${PROJECT_NAME} PRIVATE ${WARNING_LEVELS_GCC} $<$<CONFIG:DEBUG>:${WARNING_LEVELS_GCC_DEBUG}>) target_compile_options(${PROJECT_NAME} PRIVATE ${WARNING_LEVELS_GCC} $<$<CONFIG:DEBUG>:${WARNING_LEVELS_GCC_DEBUG}>)

View File

@ -46,8 +46,8 @@ This is what my build commands look like in Geany IDE with **BSD CMake Tools**.
| Name | Command | Working Directory | | Name | Command | Working Directory |
| ----------- | ------------------ | -------------------------------------------------------------------- | | ----------- | ------------------ | -------------------------------------------------------------------- |
| Configure | cmake -DCMAKE_BUILD_TYPE=Release | /home/username/Desktop/Local-Development/cplusplus/DrogonCMS | | Build | cmake -DCMAKE_BUILD_TYPE=Release | /home/username/Desktop/Local-Development/cplusplus/DrogonCMS |
| AutoReconf | cmake --build | /home/username/Desktop/Local-Development/cplusplus/DrogonCMS | | Make | cmake --build | /home/username/Desktop/Local-Development/cplusplus/DrogonCMS |
| Run | ./DrogonCMS | /home/username/Desktop/Local-Development/cplusplus/DrogonCMS | | Run | ./DrogonCMS | /home/username/Desktop/Local-Development/cplusplus/DrogonCMS |
## Authors ## Authors