Commit 060a9be6 authored by Erik Strand's avatar Erik Strand

Rename common code lib to shared_code

parent 464b767c
......@@ -11,7 +11,7 @@ find_package (Eigen3 3.3 REQUIRED NO_MODULE)
include(cmake/shared_settings.cmake)
add_subdirectory(extern)
add_subdirectory(common)
add_subdirectory(shared_code)
add_subdirectory(notes)
add_subdirectory(pset_03)
add_subdirectory(pset_04)
......
add_library(common INTERFACE)
target_link_libraries(common INTERFACE shared_settings Eigen3::Eigen)
target_include_directories(common INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
......@@ -5,4 +5,4 @@ add_executable(nbody
main.cpp
glut_grapher.cpp
)
target_link_libraries(nbody common ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
target_link_libraries(nbody shared_code ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
add_executable(rand1
main1.cpp
)
target_link_libraries(rand1 shared_settings common Eigen3::Eigen)
target_link_libraries(rand1 shared_settings shared_code Eigen3::Eigen)
add_executable(rand2
main2.cpp
)
target_link_libraries(rand2 shared_settings common Eigen3::Eigen)
target_link_libraries(rand2 shared_settings shared_code Eigen3::Eigen)
......@@ -5,7 +5,7 @@ add_library(sim
glut_grapher.cpp
glut_grapher.h
)
target_link_libraries(sim PUBLIC common ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
target_link_libraries(sim PUBLIC shared_code ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
target_include_directories(sim PUBLIC
${OPENGL_INCLUDE_DIRS}
${GLUT_INCLUDE_DIRS}
......
add_library(shared_code INTERFACE)
target_link_libraries(shared_code INTERFACE shared_settings Eigen3::Eigen)
target_include_directories(shared_code INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment