diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-09-13 00:52:25 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-09-13 00:52:25 +0800 |
commit | 9fecb429a37bcaa577aaa972139f6db3ce17ac50 (patch) | |
tree | 046a2a47b6e5aa67ad65121387781a4ea191210c /visualization | |
parent | aec5e972e8968255e8843eb22314b96a8f23b041 (diff) | |
download | QMidiPlayer-9fecb429a37bcaa577aaa972139f6db3ce17ac50.tar.xz |
CMake. It's happening.
Added a new build system based on CMake.
Minor code cleanups.
This probably breaks building with QMake on multiple
platforms. And of course the new CMake support isn't tested
thoroughly. But it's finally happening.
Diffstat (limited to 'visualization')
-rw-r--r-- | visualization/CMakeLists.txt | 38 | ||||
m--------- | visualization/SMELT | 0 |
2 files changed, 38 insertions, 0 deletions
diff --git a/visualization/CMakeLists.txt b/visualization/CMakeLists.txt new file mode 100644 index 0000000..fb88e10 --- /dev/null +++ b/visualization/CMakeLists.txt @@ -0,0 +1,38 @@ +set(visualization_SOURCES + extrasmeltutils.hpp + qmpvirtualpiano3d.hpp + qmpvisualization.hpp + extrasmeltutils.cpp + qmpvirtualpiano3d.cpp + qmpvisualization.cpp +) + +set(BUILD_DUMB ON) +set(BUILD_EXAMPLE OFF) +add_subdirectory(SMELT) + +find_package(glfw3 REQUIRED) +find_package(GLEW REQUIRED) +find_package(DevIL REQUIRED) +find_package(ZLIB REQUIRED) +find_package(Freetype REQUIRED) +find_package(OpenGL REQUIRED COMPONENTS OpenGL) + +include_directories(${PROJECT_SOURCE_DIR}/include/) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/SMELT/include) +include_directories(${FREETYPE_INCLUDE_DIRS}) + +add_library(visualization MODULE + ${visualization_SOURCES} +) + +target_link_libraries(visualization + ${FREETYPE_LIBRARIES} + ${ZLIB_LIBRARIES} + smeltext + smelt + ${IL_LIBRARIES} + glfw + ${GLEW_LIBRARIES} + OpenGL::GL +) diff --git a/visualization/SMELT b/visualization/SMELT new file mode 160000 +Subproject 2836b3d1bdb32765950b8e3133a2452d8e7b98d |