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

CMake configs.

parent a8e88ae8
Branches
Tags
No related merge requests found
...@@ -28,9 +28,10 @@ endif() ...@@ -28,9 +28,10 @@ endif()
# 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 # Dear ImGui based application
add_subdirectory(imgui_app) # 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)
......
...@@ -6,7 +6,7 @@ link_directories(${GTKMM_LIBRARY_DIRS}) ...@@ -6,7 +6,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) # include_directories(../qpong_core)
# create the application # create the application
add_executable( qpong.app add_executable( qpong.app
...@@ -16,11 +16,15 @@ add_executable( qpong.app ...@@ -16,11 +16,15 @@ add_executable( qpong.app
ParticleImage.cpp ParticleImage.cpp
) )
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
fftw3_omp
m # math m # math
) )
...@@ -7,12 +7,12 @@ add_library( ...@@ -7,12 +7,12 @@ add_library(
Player.cpp Player.cpp
) )
find_package(Threads) # find_package(Threads)
target_link_libraries( # target_link_libraries(
qpong_core # qpong_core
${CMAKE_THREAD_LIBS_INIT} # ${CMAKE_THREAD_LIBS_INIT}
fftw3 # fftw3
fftw3_omp # fftw3_omp
m # m
) # )
\ No newline at end of file \ 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