2 cmake_minimum_required(VERSION 2.8)
4 option(VOGL_ENABLE_ASSERTS "Enable assertions in all builds (including release)" FALSE)
6 if (NOT CMAKE_USE_PTHREADS_INIT)
7 message(ERROR "pthread not found")
10 include("${SRC_DIR}/build_options.cmake")
14 ${LZMADEC_INCLUDE_DIR}
15 "${SRC_DIR}/chromiumlib"
22 vogl_colorized_console.cpp
23 vogl_command_line_params.cpp
32 vogl_dynamic_module.cpp
33 vogl_dynamic_string.cpp
49 vogl_miniz_zip_test.cpp
50 vogl_mipmapped_texture.cpp
54 vogl_resample_filters.cpp
57 vogl_sparse_bit_array.cpp
60 vogl_texture_file_types.cpp
61 vogl_threaded_resampler.cpp
62 vogl_threading_pthreads.cpp
86 add_compiler_flag("-fPIC")
88 if (VOGL_ENABLE_ASSERTS)
89 message("Forcing assertions to be enabled (VOGL_ENABLE_ASSERTS=TRUE)")
90 add_compiler_flag("-DVOGL_ENABLE_ASSERTIONS_IN_ALL_BUILDS=1")
92 message("Not forcing assertions to be enabled (VOGL_ENABLE_ASSERTS=FALSE)")
95 add_library(${PROJECT_NAME} ${SRC_LIST})
96 target_link_libraries(${PROJECT_NAME}
97 ${CMAKE_THREAD_LIBS_INIT}
103 build_options_finalize()