2017-06-27 23:20:14 +02:00
|
|
|
|
2018-12-27 23:45:16 +01:00
|
|
|
set(hdrs
|
2021-01-19 20:38:28 +01:00
|
|
|
include/pw/core/aabb.hpp
|
2019-01-22 14:16:03 +01:00
|
|
|
include/pw/core/axisangle.hpp
|
2021-01-19 20:38:28 +01:00
|
|
|
include/pw/core/color.hpp
|
2019-01-07 17:09:20 +01:00
|
|
|
include/pw/core/core.hpp
|
2019-01-25 18:01:01 +01:00
|
|
|
include/pw/core/debug.hpp
|
|
|
|
include/pw/core/globals.hpp
|
2021-01-19 20:38:28 +01:00
|
|
|
include/pw/core/material.hpp
|
2019-01-07 17:09:20 +01:00
|
|
|
include/pw/core/math.hpp
|
|
|
|
include/pw/core/matrixbase.hpp
|
2019-01-22 14:16:03 +01:00
|
|
|
include/pw/core/matrix.hpp
|
|
|
|
include/pw/core/quaternion.hpp
|
2019-01-07 17:09:20 +01:00
|
|
|
include/pw/core/image.hpp
|
2019-01-09 16:24:16 +01:00
|
|
|
include/pw/core/point.hpp
|
2021-01-19 20:38:28 +01:00
|
|
|
include/pw/core/resource.hpp
|
|
|
|
include/pw/core/rectangle.hpp
|
2019-01-25 18:01:01 +01:00
|
|
|
include/pw/core/serialize.hpp
|
2019-01-14 21:48:16 +01:00
|
|
|
include/pw/core/size.hpp
|
2021-01-19 20:38:28 +01:00
|
|
|
include/pw/core/time.hpp
|
|
|
|
include/pw/core/geometry.hpp
|
2019-01-17 17:34:14 +01:00
|
|
|
include/pw/core/image.hpp
|
2019-01-25 18:01:01 +01:00
|
|
|
include/pw/core/vector.hpp
|
2021-01-19 20:38:28 +01:00
|
|
|
include/pw/core/matrix_transform.hpp
|
2019-01-07 17:09:20 +01:00
|
|
|
)
|
2018-12-27 23:45:16 +01:00
|
|
|
|
2019-01-22 09:06:22 +01:00
|
|
|
set(misc
|
2019-01-22 14:16:03 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/README.md
|
|
|
|
${CMAKE_SOURCE_DIR}/LICENSE
|
|
|
|
${CMAKE_SOURCE_DIR}/TODO.md
|
|
|
|
)
|
2019-01-22 09:06:22 +01:00
|
|
|
|
2018-12-27 23:45:16 +01:00
|
|
|
set(srcs
|
2021-01-19 20:38:28 +01:00
|
|
|
# src/buffer.cpp
|
|
|
|
src/core.cpp
|
2019-01-07 17:09:20 +01:00
|
|
|
src/image.cpp
|
2019-01-09 11:34:19 +01:00
|
|
|
src/debug.cpp
|
2021-01-19 20:38:28 +01:00
|
|
|
src/geometry.cpp
|
|
|
|
src/material.cpp
|
|
|
|
src/resource.cpp
|
2019-01-22 14:16:03 +01:00
|
|
|
src/serialize.cpp
|
2021-01-19 20:38:28 +01:00
|
|
|
src/time.cpp
|
2019-01-17 17:34:14 +01:00
|
|
|
src/image.cpp
|
2019-01-07 17:09:20 +01:00
|
|
|
)
|
2018-12-27 23:45:16 +01:00
|
|
|
|
|
|
|
add_library(pwcore
|
2019-01-07 17:09:20 +01:00
|
|
|
STATIC
|
|
|
|
${hdrs}
|
|
|
|
${srcs}
|
2019-01-22 14:16:03 +01:00
|
|
|
${misc}
|
2019-01-07 17:09:20 +01:00
|
|
|
)
|
2018-12-27 23:45:16 +01:00
|
|
|
|
|
|
|
target_include_directories(
|
2019-01-07 17:09:20 +01:00
|
|
|
pwcore
|
|
|
|
PUBLIC
|
|
|
|
include
|
|
|
|
)
|
2018-12-27 23:45:16 +01:00
|
|
|
|
|
|
|
target_link_libraries(pwcore)
|
|
|
|
|
2018-04-02 01:06:50 +02:00
|
|
|
add_subdirectory(tests)
|
2017-06-27 23:20:14 +02:00
|
|
|
|