drogonCMS-cmake into main branch that replaces make plus other things #1
@ -102,6 +102,9 @@ add_definitions(${GTK4_CFLAGS_OTHER} ${ADW_CFLAGS_OTHER})
|
||||
# Adding something we can run - Output name matches target name
|
||||
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.
|
||||
# Other common choices are STATIC, SHARED, and MODULE
|
||||
# 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
|
||||
# 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_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(${PROJECT_NAME} PRIVATE ${WARNING_LEVELS_GCC} $<$<CONFIG:DEBUG>:${WARNING_LEVELS_GCC_DEBUG}>)
|
||||
|
@ -46,8 +46,8 @@ This is what my build commands look like in Geany IDE with **BSD CMake Tools**.
|
||||
|
||||
| Name | Command | Working Directory |
|
||||
| ----------- | ------------------ | -------------------------------------------------------------------- |
|
||||
| Configure | cmake -DCMAKE_BUILD_TYPE=Release | /home/username/Desktop/Local-Development/cplusplus/DrogonCMS |
|
||||
| AutoReconf | cmake --build | /home/username/Desktop/Local-Development/cplusplus/DrogonCMS |
|
||||
| Build | cmake -DCMAKE_BUILD_TYPE=Release | /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 |
|
||||
|
||||
## Authors
|
||||
|
Loading…
x
Reference in New Issue
Block a user