Skip to content
Snippets Groups Projects
Commit f5142ff2 authored by Armin Co's avatar Armin Co
Browse files

CMake poking

parent 54680e76
No related branches found
No related tags found
No related merge requests found
[submodule "libs/googletest"] [submodule "libs/googletest"]
path = libs/googletest path = libs/googletest
url = https://github.com/google/googletest.git url = https://github.com/google/googletest.git
[submodule "libs/imgui"]
path = libs/imgui
url = https://github.com/armin-co/imgui.git
[submodule "libs/cpp_starter_project"]
path = libs/cpp_starter_project
url = https://github.com/armin-co/cpp_starter_project.git
\ No newline at end of file
...@@ -23,8 +23,9 @@ find_package(PkgConfig REQUIRED) ...@@ -23,8 +23,9 @@ find_package(PkgConfig REQUIRED)
# Add qpong lib for core qpong functionality # Add qpong lib for core qpong functionality
add_subdirectory(qpong_core) add_subdirectory(qpong_core)
include_directories(qpong_core)
# Dear ImGui based application
add_subdirectory(imgui_app)
# Add dir with gtk qpong app # Add dir with gtk qpong app
add_subdirectory(gtk_qpong_app) add_subdirectory(gtk_qpong_app)
......
...@@ -13,6 +13,7 @@ link_directories(${GTKMM_LIBRARY_DIRS}) ...@@ -13,6 +13,7 @@ link_directories(${GTKMM_LIBRARY_DIRS})
# get all GTKMM dependencies and configuration # get all GTKMM dependencies and configuration
include_directories(${GTKMM_INCLUDE_DIRS}) include_directories(${GTKMM_INCLUDE_DIRS})
include_directories(../qpong_core)
if(APPLE) if(APPLE)
include_directories(/usr/local/include) include_directories(/usr/local/include)
...@@ -28,16 +29,9 @@ add_executable( qpong.app ...@@ -28,16 +29,9 @@ add_executable( qpong.app
) )
# we do need some threads
find_package(Threads)
# link all necessary libs to the target # link all necessary libs to the target
target_link_libraries( qpong.app target_link_libraries( qpong.app
qpong_core qpong_core
${CMAKE_THREAD_LIBS_INIT}
${GTKMM_LIBRARIES} ${GTKMM_LIBRARIES}
fftw3
fftw3_omp
m # math m # math
) )
# Specific settings for macOS
if(APPLE)
link_directories("/usr/local/lib")
message("ATTENTION: You probably have to export the PKG_CONFIG_PATH.")
message("For example: export PKG_CONFIG_PATH=\"/usr/local/lib:/usr/local/opt/zlib/lib/pkgconfig\"")
endif()
add_executable(imgui_playground.app
imgui_playground.cpp)
\ No newline at end of file
/// @file imgui_playground.cppp
/// @author Armin Co
/// @brief Working example for Dear ImGui with OpenGL3 and SDL2
///
int main(void)
{
return 0;
}
\ No newline at end of file
Subproject commit d7a2b6b891d75edc68c9d88dca7e24cd73e378b8
Subproject commit ae93691360ad28e6c217138ead55c874dda26f80
...@@ -5,3 +5,11 @@ endif() ...@@ -5,3 +5,11 @@ endif()
# Core QPong library # Core QPong library
add_library(qpong_core Particle.cpp ImageBuffer.cpp Player.cpp) add_library(qpong_core Particle.cpp ImageBuffer.cpp Player.cpp)
find_package(Threads)
target_link_libraries( qpong_core
${CMAKE_THREAD_LIBS_INIT}
fftw3
fftw3_omp
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment