Skip to content

Commit

Permalink
Start of MegaMol 1.3 release
Browse files Browse the repository at this point in the history
fixed ignores, fixed glad, included lua, configurator
  • Loading branch information
reinago committed Sep 26, 2017
1 parent 0082453 commit f6a2d3e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ configurator/.vs/
configurator/bin/
configurator/MegaMolConf/obj/
configurator/packages/

configurator/MegaMolConf/Properties/AssemblyInfo\.cs

configurator/MegaMolConf/Resources/mmconfig\.res
2 changes: 1 addition & 1 deletion console/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if(BUILD_CONSOLE)
endif()

set(LIBS vislib core glad ${GLFW3_LIBRARIES} ${VERSION_LIBRARY} ${LIBUNWIND_LIBRARIES} ${EGL_LIBRARIES})
include_directories(${GLFW3_INCLUDE_DIRS} ${LIBUNWIND_INCLUDE_DIR} ${EGL_INCLUDE_DIR})
include_directories(${GLFW3_INCLUDE_DIRS} ${LIBUNWIND_INCLUDE_DIR} ${EGL_INCLUDE_DIR} "src" "include")

if(NOT USE_EGL)
option(USE_INTERNAL_ANTTWEAKBAR "use internal AntTweakBar" ON)
Expand Down
2 changes: 1 addition & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ if(BUILD_CORE)
endif()

set(LIBS vislib glad lua ${EXPAT_LIBRARIES} ${ZLIB_LIBRARIES} ${PNG_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${ZMQ_LIB})
include_directories(${EXPAT_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS} ${EXTERNAL_INSTALL_LOCATION}/include)
include_directories(${EXPAT_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS} ${EXTERNAL_INSTALL_LOCATION}/include "src" "include")
link_directories(${EXTERNAL_INSTALL_LOCATION}/lib)

if (OPENMP_FOUND OR WIN32)
Expand Down
3 changes: 2 additions & 1 deletion core/remoteconsole/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if(BUILD_REMOTECONSOLE)
INSTALL_COMMAND ${CXXOPTS_INSTALL_CMD} ${CXXOPTS_INSTALL_ARGS}
)

set(LIBS vislib glload lua ${EXPAT_LIBRARIES} ${ZLIB_LIBRARIES} ${PNG_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${ZMQ_LIB})
set(LIBS vislib glad lua ${EXPAT_LIBRARIES} ${ZLIB_LIBRARIES} ${PNG_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${ZMQ_LIB})
include_directories(${EXPAT_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS} ${EXTERNAL_INSTALL_LOCATION}/include)
link_directories(${EXTERNAL_INSTALL_LOCATION}/lib)

Expand All @@ -48,6 +48,7 @@ if(BUILD_REMOTECONSOLE)
add_executable(${PROJECT_NAME} ${public_header_files} ${header_files} ${shader_files} ${source_files})
target_link_libraries(${PROJECT_NAME} PRIVATE ${LIBS})
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
add_dependencies(${PROJECT_NAME} core glad)

set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER base)
source_group("Header Files" FILES ${header_files})
Expand Down
2 changes: 1 addition & 1 deletion plugins/imageviewer2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(BUILD_${EXPORT_NAME}_PLUGIN)
# Target definition
#add_library(${PROJECT_NAME} SHARED ${public_header_files} ${header_files} ${shader_files} ${source_files})
add_library(${PROJECT_NAME} SHARED ${public_header_files} ${header_files} ${source_files})
add_dependencies(${PROJECT_NAME} vislib glload core)
add_dependencies(${PROJECT_NAME} vislib glad core)
# Set target naming conventions for different build types
set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".mmplg")
# Dependent projects only need to link against the core.so itself.
Expand Down
4 changes: 2 additions & 2 deletions plugins/infovis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if(BUILD_${EXPORT_NAME}_PLUGIN)
# afterwards list the dependencies.
set(DEP_LIST "${DEP_LIST};BUILD_${EXPORT_NAME}_PLUGIN BUILD_CORE BUILD_MMSTD_DATATOOLS_PLUGIN" CACHE INTERNAL "")

set(LIBS vislib core glload mmstd_datatools)
set(LIBS vislib core glad mmstd_datatools)
include_directories("include" "src")

file(GLOB_RECURSE public_header_files RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "include/*.h")
Expand All @@ -23,7 +23,7 @@ if(BUILD_${EXPORT_NAME}_PLUGIN)

# Target definition
add_library(${PROJECT_NAME} SHARED ${public_header_files} ${header_files} ${shader_files} ${source_files})
add_dependencies(${PROJECT_NAME} vislib glload core mmstd_datatools)
add_dependencies(${PROJECT_NAME} vislib glad core mmstd_datatools)
# Set target naming conventions for different build types
set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".mmplg")
# Dependent projects only need to link against the core.so itself.
Expand Down
8 changes: 4 additions & 4 deletions plugins/infovis/src/NGParallelCoordinatesRenderer2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,10 @@ bool NGParallelCoordinatesRenderer2D::create(void) {
if (!makeComputeProgram("::pc_item_pick", this->pickProgram)) return false;
if (!makeComputeProgram("::pc_item_stroke", this->strokeProgram)) return false;

glGetProgramiv(this->filterProgram, GL_COMPUTE_LOCAL_WORK_SIZE, filterWorkgroupSize);
glGetProgramiv(this->minMaxProgram, GL_COMPUTE_LOCAL_WORK_SIZE, counterWorkgroupSize);
glGetProgramiv(this->pickProgram, GL_COMPUTE_LOCAL_WORK_SIZE, pickWorkgroupSize);
glGetProgramiv(this->strokeProgram, GL_COMPUTE_LOCAL_WORK_SIZE, strokeWorkgroupSize);
glGetProgramiv(this->filterProgram, GL_COMPUTE_WORK_GROUP_SIZE, filterWorkgroupSize);
glGetProgramiv(this->minMaxProgram, GL_COMPUTE_WORK_GROUP_SIZE, counterWorkgroupSize);
glGetProgramiv(this->pickProgram, GL_COMPUTE_WORK_GROUP_SIZE, pickWorkgroupSize);
glGetProgramiv(this->strokeProgram, GL_COMPUTE_WORK_GROUP_SIZE, strokeWorkgroupSize);

glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 0, &maxWorkgroupCount[0]);
glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 1, &maxWorkgroupCount[1]);
Expand Down

0 comments on commit f6a2d3e

Please sign in to comment.